Hello Tim,
Thanks for your post. As I understand, the problem you are facing is that
it throws System.ExecutionEngineException. Please correct me if there is
any misunderstanding. I'd like to share the following information with you:
1. MSDN documentation describes ExecutionEngineException as:
"The exception that is thrown when there is an internal error in the
execution engine of the common language runtime. This class cannot be
inherited.
Execution engine errors are fatal errors that should never occur. Such
errors occur mainly when the execution engine has been corrupted or data is
missing. The system can throw this exception at any time. When possible,
the system throws an exception that provides more information than the
ExecutionEngineException exception."
ExecutionEngineException Class
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfsystemexecutionengineexceptionclasstopic.asp
2. I reviewed your description carefully, and I suspect that the problem
may be caused by using P/Invoke to call unmanaged API, especially the
"data" parameter. Please check which side (the caller or callee) should
allocate the memory for "data" to call tira_get_captured_data, and make
sure that you marshall the data properly. I believe the following MSDN
articles are helpful:
Consuming Unmanaged DLL Functions
http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconConsumingUnmanagedDLLFunctions.asp
Marshaling Data with Platform Invoke
http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconmarshalingdatawithplatforminvoke.asp
Marshal Class
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfSystemRuntimeInteropServicesMarshalClassTopic.asp
Hope this helps.
Regards,
HuangTM
Microsoft Online Partner Support
MCSE/MCSD
Get Secure! --
www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.