T
Tim Mulholland
I have an application that uses an external C(?) Dll and it seems like
after I make a specific call to that dll the application will crash at a
random call to the dll in the future. It sometimes crashes the next call
after said call, while sometimes it doesn't crash for 5 minutes; but it
always crashes.
As long as I don't call tira_get_captured_data it doesn't crash so I am
assuming that is the cause. I get a System.ExecutionEngineException error
in System.Windows.Forms.dll or mscorlib.dll and it does not give me a line
number so I am stuck. The call that seems to be the beginning of the end is
[DllImport("Tira2.dll")] public static extern int tira_get_captured_data(ref
IntPtr data, ref int size); I had to make a few conversions, its original
def is
extern "C" __stdcall int tira_get_captured_data ( const unsigned char**
data, int* size )
Is something wrong with the conversion I made?
Thanks in advance
after I make a specific call to that dll the application will crash at a
random call to the dll in the future. It sometimes crashes the next call
after said call, while sometimes it doesn't crash for 5 minutes; but it
always crashes.
As long as I don't call tira_get_captured_data it doesn't crash so I am
assuming that is the cause. I get a System.ExecutionEngineException error
in System.Windows.Forms.dll or mscorlib.dll and it does not give me a line
number so I am stuck. The call that seems to be the beginning of the end is
[DllImport("Tira2.dll")] public static extern int tira_get_captured_data(ref
IntPtr data, ref int size); I had to make a few conversions, its original
def is
extern "C" __stdcall int tira_get_captured_data ( const unsigned char**
data, int* size )
Is something wrong with the conversion I made?
Thanks in advance