pendragon Posted November 10, 2010 Posted November 10, 2010 Hi I have a strange problem that has just started to happen, when I run a program in VS to test it, if it comes to an error instead of stopping and reporting the error it ignores that section of code and carries on. Is there an option in VS that allows it to do this, something like ignore errors, had a look but nothing jumps out. Thank you. Quote
Leaders snarfblam Posted November 10, 2010 Leaders Posted November 10, 2010 Under the debug menu you can select "Exceptions..." where you can choose whether to handle all exceptions, or only those that are not handled in your code. You can apply this setting differently for different types of exceptions. If you are only catching unhandled exceptions, your code (or, possibly, framework code) could be catching exceptions and swallowing them. In this case you need to make sure you handle all thrown exceptions, otherwise you'll never see them. Quote [sIGPIC]e[/sIGPIC]
pendragon Posted November 11, 2010 Author Posted November 11, 2010 Hi Snarfblam Thank you for your reply, I have looked at that and it should be throwing exeptions for anything not handled. In one case it is automaticlly seting an uninitialised int to 0. Just weird Quote
Administrators PlausiblyDamp Posted November 11, 2010 Administrators Posted November 11, 2010 Are you running on a 64bit version of windows? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Leaders snarfblam Posted November 11, 2010 Leaders Posted November 11, 2010 I have looked at that and it should be throwing exeptions for anything not handled. My whole point is that the exception may be getting handled. Try catching any exception thrown, not just those that are unhandled. Quote [sIGPIC]e[/sIGPIC]
pendragon Posted November 12, 2010 Author Posted November 12, 2010 Are you running on a 64bit version of windows? Yes PlausiblyDamp I am running on 64bit Windows 7 It doesn't even stop when i put throw new NotImplementedException(); in it. Quote
Administrators PlausiblyDamp Posted November 14, 2010 Administrators Posted November 14, 2010 There is a known issue with the 64 bit version of the framework were exceptions thrown in a form load get skipped over, I will try to dig up the KB article if I can. Unless you need a 64 bit app you could try setting the project to build as x86 and see if that helps. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
pendragon Posted November 14, 2010 Author Posted November 14, 2010 (edited) Thanks PlausiblyDamp The project is set to build as x86 and still have the probelm. [Edit] Found the KB Artical PlausiblyDamp, Doesn't look like they are going to fix it might have to go back to 32 bit op system as just spent 3 hours looking for what turned out to be a typo :mad: Edited November 15, 2010 by pendragon Quote
Administrators PlausiblyDamp Posted November 15, 2010 Administrators Posted November 15, 2010 There is a hotfox mentioned in http://blog.paulbetts.org/index.php/2010/07/20/the-case-of-the-disappearing-onload-exception-user-mode-callback-exceptions-in-x64/ looks like this is the only option till Win7 Sp1 is released. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
pendragon Posted November 16, 2010 Author Posted November 16, 2010 Thanks PlausiblyDamp Hopefully SP1 won't be to long in coming out Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.