473,387 Members | 1,575 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

visual studio crashes when com event is fired

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.Storag eControl;

pStorageControl.SaveDataRequest += new
InstrumentUX.IStorageControlEvents_SaveDataRequest EventHandler(pIStorageControlEvents_Event_SaveData Request);

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

Aug 8 '06 #1
3 1305
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

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"TheSebaster" wrote:
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.Storag eControl;

pStorageControl.SaveDataRequest += new
InstrumentUX.IStorageControlEvents_SaveDataRequest EventHandler(pIStorageControlEvents_Event_SaveData Request);

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

Aug 8 '06 #2
I use CF 2.0 SP1 and CE 5.0

"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.comwrote in message
news:F1**********************************@microsof t.com...
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

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"TheSebaster" wrote:
>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.Stora geControl;

pStorageControl.SaveDataRequest += new
InstrumentUX.IStorageControlEvents_SaveDataReques tEventHandler(pIStorageControlEvents_Event_SaveDat aRequest);

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


Aug 8 '06 #3
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.

"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.comwrote in message
news:F1**********************************@microsof t.com...
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

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"TheSebaster" wrote:
>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.Stora geControl;

pStorageControl.SaveDataRequest += new
InstrumentUX.IStorageControlEvents_SaveDataReques tEventHandler(pIStorageControlEvents_Event_SaveDat aRequest);

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


Aug 8 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Steve D. | last post by:
I recently installed VS.NET 2003 After opening a project and leaving it open, after a certain period of time it crashes. It only does this when a project is open. The project that I've tried...
3
by: Greg B | last post by:
Created a simple Win32 application (using Visual Studio wizard)... Am using Visual Studio (Enterprise Edition) 6.0, as well as Service Pack 5. At the start of 'WinMain' function, added the...
3
by: michael.lang | last post by:
I am using PostBuild events in a C# project to run some tasks, but only when in release configuration mode. The build events run perfectly as expected when run. The problem comes when I save the...
9
by: slimicus | last post by:
The IDE crashes about every 10-20 minutes for me.. its been doing this ever since I started this project (The project was a 2003 project but I recreated it in 2005) When it crashes, its...
1
by: Owen Blacker | last post by:
Apologies, first of all, for the cross-posting. I'm getting WebDev.WebServer.exe crashing all the time at the moment, despite having done a Detect and Repair with Visual Studio 2005, but I guess...
2
by: coala | last post by:
My visual studio crashes when I attach to a process (i.e. Excel) so I cannot debug. Would anyone have any advice on what I can do/I am doing wrong please? I have installed all the latest...
13
by: jc | last post by:
I have written a parser using bison and flex to read ASAP2 file for CAN communications. entire development was done in an unix environment and now the code is ready to be integrated to an existing...
1
by: Cramer | last post by:
I'm running XP Pro/SP2 + patches and updates, with Visual Studio Professional 2008 (and no prior installation of Visual Studio ever installed). When attempting to open an ASP.NET Web application...
3
by: Johnson | last post by:
I'm not sure if this is an IIS 5.1 issue or ASP.NET issue, or Visual Studio 2008 issue -- thus posting to 3 groups. Please don't be offended. The problem I'm encountering is that Visual Studio...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.