visual studio crashes when com event is fired

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
 
G

Guest

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
 
T

TheSebaster

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top