-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Is it possible to access the "errno" variable in C# when P/Invoking? This is similar to Win32 GetLastError().
>>> More
-
as seen on Super User
- Search for 'Super User'
Hi im trying to get the tidy extensions installed on centos running php 5.3
Thanks
Downloading Packages:
http://repo.webtatic.com/yum/centos/5/x86_64/php-tidy-5.3.5-1.w5.x86_64.rpm: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://repo.webtatic.com/yum/centos/5/x86_64/php-pdo-5…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a program that uses urllib to periodically fetch a url, and I see intermittent
errors like :
I/O error(socket error): [Errno 111] Connection refused.
It works 90% of the time, but the othe r10% it fails. If retry the fetch immediately after it fails, it succeeds. I'm unable to figure out…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
My application uses lseek to seek the desired position to write data.
The file is opened using open() command successfully and my application was able to use lseek and wite lots of times.
At a given time, for some users and not easily reproducible the lseek returns -1 with an errno of 9. File is…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
I'm Running Mysql on ubuntu 9.10,
the process of Mysql is running as root, I'm using root account when logging to Mysql, which I gave all privileges, I'm using my own db(not mysql), I can create a table, but when i try to create Temporary table i get this error:
ERROR 1005 (HY000): Can't create…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
I have an unmanaged struct I'd like to marshal to c# that looks basically like this:
struct DateTimeStruct{
double datetimestamp;
};
struct MyStruct{
char firstname[40];
char lastname[40];
DateTimeStruct bday;
unsigned integer bool1;
int val1;
};
What is the the correct…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am having an interesting problem with using pinvoke in C# to call _snwprintf. It works for integer types, but not for floating point numbers.
This is on 64-bit Windows, it works fine on 32-bit.
My code is below, please keep in mind that this is a contrived example to show the behavior I am seeing…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
From version to version of .NET the more function that's equal to P/Invoke is added to .NET
Now there are 2 questions in my mine.
1) Which one is prefer other the other in term of speed, normally I use .Net function but in tight loop I don't really know which one is going to be faster.
2) Is there…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Good afternoon,
I have been working on a dll that can use CORBA to communicate to an application that is network aware. The code works fine if I run it as a C++ console application. However, I have gotten stuck on exporting the methods as a dll. The methods seems to export fine, and if I call…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Here is my code for a ClickMouse() function:
[DllImport("user32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)]
public static extern void mouse_event(long dwFlags, long dx, long dy, long cButtons, long dwExtraInfo);
private const long MOUSEEVENTF_LEFTDOWN…
>>> More