Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

  • Leaders
Posted

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.

[sIGPIC]e[/sIGPIC]
Posted

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

  • Leaders
Posted

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.

[sIGPIC]e[/sIGPIC]
Posted
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.

  • Administrators
Posted
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.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Posted (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 by pendragon

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...