Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Crash when using c++ dll in vb.net

Hello,

We are working on a vb.net app which uses an unmanaged C++ win32 dll
to communicate with a USB device. The dll Initializes a connection, transmits a command (which includes an implicit read), and closes the connection. All these calls appear to work appropriately since the device replies as expected when called upon. The GUI for the application includes several buttons. After communication with the device (whether the connection is left open or closed), any interaction with the GUI causes the app to crash. Dragging the mouse over buttons several times causes the app to hang. Clicking on a button causes the app to close. Any idea what could be causing this behavior?
Occasionally a 'System.ExecutionEngineException' in mscorlib.dll is thrown upon crashing.

Any help would be greatly appreciated,
Carlos
[871 byte] By [cdasaro] at [2007-11-11 8:03:51]