Peter Duniho
4/9/2008 4:22:00 PM
On Wed, 09 Apr 2008 06:18:04 -0700, AG <NOSPAMagiamb@newsgroup.nospam>
wrote:
> That enables me to log the exception, but how can I prevent the Windows
> 'Myapp has encountered a problem and needs to close...' dialog from
> popping up?
You can try the solution Luc suggested. I'd say there's at least a 50/50
chance it'll work (I'd test it myself, but I figure you can do that just
as easily, and at the moment I am doing other things :) ).
If it doesn't, then you may not be able to prevent the dialog from
appearing.
Of course, this assumes the exception is happening somewhere that you are
unable to provide your own try/catch block in order to handle the
exception. Your original question implies this, but if it's not really
true, then obviously the best solution is to actually handle the
exception. :)
Pete