469,622 Members | 1,462 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,622 developers. It's quick & easy.

C# WinForms: Exit application before Access Violation Exception shows

71
Hi Everyone,

Currently I am having this exception:

"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."

I am still debugging which part of my code is the cause.

Is there a way not to let the exception show as of the moment? When it is about (which i dont know when) to show I will restart or close the application..

TIA

dantz
Dec 7 '09 #1

✓ answered by dantz


2 3571
dantz
71
Thanks for the reply and views.



I found the solution on my question. I guess I was not clear enough on how I explained my question.

http://richnewman.wordpress.com/2007...ations-part-1/

http://codeidol.com/csharp/csharpckb...d-Termination/

For MSDN References:

http://msdn.microsoft.com/en-us/libr...exception.aspx

http://msdn.microsoft.com/en-us/libr...on(VS.71).aspx
Dec 7 '09 #2
dantz
71
This link explains it all

http://www.switchonthecode.com/tutor...led-exceptions
Dec 7 '09 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Peter Oliphant | last post: by
5 posts views Thread by Segfahlt | last post: by
5 posts views Thread by brian.wilson4 | last post: by
reply views Thread by devrayhaan | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.