Skip to main content
Home Forums Silverlight Programming Report a Silverlight Bug ApplicationUnhandledException not thrown
3 replies. Latest Post by jjy2 on September 26, 2007.
(0)
jjy2
Member
354 points
155 Posts
09-20-2007 4:01 AM |
ApplicationUnhandledException is not called if user codes throw exception during particular event handling (such as Loaded, MouseLeftButtonDown etc..) It seems it's caught inside framework and codes executes continusly as if nothing happened.I got it working only if javascript calls C# class object's method and if I throw an exception in that method. I realized that I have to put try--cath in almost every event handling routines. Is this by design?
ApplicationUnhandledException is not called if user codes throw exception during particular event handling (such as Loaded, MouseLeftButtonDown etc..)
It seems it's caught inside framework and codes executes continusly as if nothing happened.I got it working only if javascript calls C# class object's method and if I throw an exception in that method. I realized that I have to put try--cath in almost every event handling routines.
Is this by design?
VladF
216 points
87 Posts
09-24-2007 4:41 PM |
Menu Debug | Exceptions -> check all the checks you need. For some reason they are unchecked by default.
09-25-2007 5:37 AM |
Hi VladF
Thanks for that. I now enabled just about every type of break in debugger.But I still need ApplicationUnhandledException to be called at runtime so that my application can take appropriate action. Hope this will be fixed in the release
09-26-2007 1:50 PM |
I think I need to clarify this as I saw similar issues in the other postsIt seems we have 3 different but related issues