471,350 Members | 1,490 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

C++ 6.0 COM object with C# and Silent Exception Handing?

Hello,

I developed a C++ 6.0 COM object. This object supports a single event,
EventReady(). I use this object for a C# application.

I have a problem where if I get an error in my EventReady() handler I don't
crash! Rather, code execution seems to jump return to my COM object
skipping the rest of my handler code.

For example, if I deliberatly introduce this code:

void EventReady()
{
int i = 0;
int j = 2 / i;

I don't get a devide by zero error. If I put the same code in a menu
handler (for example) I do.

I want to crash when I get the error. How can I build my code to crash?

I'm not sure if this is something about how the COM object is being built or
something on the C# side and if so what it could be.

Thanks,

Grant Schenck
Jan 16 '06 #1
0 881

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by scorpion53061 | last post: by
6 posts views Thread by Ant | last post: by
41 posts views Thread by Stuart Golodetz | last post: by
41 posts views Thread by Zytan | last post: by
12 posts views Thread by EvilOldGit | last post: by
21 posts views Thread by phpCodeHead | last post: by
112 posts views Thread by istillshine | last post: by
reply views Thread by XIAOLAOHU | last post: by

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.