[Mono-bugs] [Bug 426181] System.AccessViolationException Doesn' t Contain The Same Private Fields As MS .NET

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Sep 15 14:35:09 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=426181

User martin_costello at talk21.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=426181#c4





--- Comment #4 from Martin Costello <martin_costello at talk21.com>  2008-09-15 12:35:08 MDT ---
While memory may have been corrupted, not throwing the exception removes the
ability for the developer to call any code to gracefully exit the application.

In my case, I want to write the source of the exception to a log file, restore
some backups made during processing, and then quit the application with a
friendly error for users.

Not throwing the exception removes any graceful options, leaving a terminal
full of stack traces from each thread or, if a GUI, nothing.  It also means
that my intermediate files are left behind to clutter the working directory,
rather than being tidied away.

In my opinion, the developer should be given the option to run the risk of the
program becoming unusable by being able to handle such an exception in any
P/Invoked native code, particularly if the P/Invoked module isn't part of the
OS (i.e. user written).

If the developer chooses not to handle the exception, the program will crash
anyway.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list