visual studio crashes when com event is fired

  • Thread starter Thread starter TheSebaster
  • Start date Start date
T

TheSebaster

I register to a com event under a win32 C# application.
Here is the code I wrote:
InstrumentUX.StorageControl pStorageControl = null;

pStorageControl =
(InstrumentUX.StorageControl)_objIControlUX.StorageControl;

pStorageControl.SaveDataRequest += new
InstrumentUX.IStorageControlEvents_SaveDataRequestEventHandler(pIStorageControlEvents_Event_SaveDataRequest);

This code works correctly under a win32 C# application but

when I run it under a .NET compack framework c# application, visual studio
crashes when the com event is fired with

the following message: "Microsoft Visual Studio Encontered a problem and
need to close".

There is no message in event viewer.

Does anyone could help me??

Thank you

TheSebaster
 
What version of the CF are you running? Compact Fraemework has very limited
native support for COM. Windows Mobile 5.0 has better support.
Peter
 
I made it work by copying release executable on the device and manually
start it but it still
not working under visual studio debug environment.
 
Back
Top