HighTechTalks DotNet Forums  

Exceptions in events in ActiveX control are supressed/silenced?

Dotnet Framework (Interop) microsoft.public.dotnet.framework.interop


Discuss Exceptions in events in ActiveX control are supressed/silenced? in the Dotnet Framework (Interop) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
martin
 
Posts: n/a

Default Exceptions in events in ActiveX control are supressed/silenced? - 05-19-2007 , 01:45 PM






I was testing out the Visio ActiveX control recently. I noticed that if an
exception is thrown inside its methods, then that exceptions seems to be
swallowed and ignored? If I put a try/catch around the code inside the event
handler then I see the exception but if I remove the try/catch the exception
never manages to crash the application as it normally would. Still I know
that the exception happens even without the try/catch because only half the
code in my event handler actually runs.

So, what's the story here? Is it normal the ActiveX controls mute managed
exceptions like this?


Regards,
Martin

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.