How to avoid Application failure or ASSERT Dialog when application crash.
-
Hi Every one How to avoid Application failure or ASSERT Dialog when application crash. I dont want famouse Cancel , Retry ,Abort or simple Ok , Cancel Dialog in release mode , to come up . I want whenever any thing goes wrong , my application simply exit.no intimation to user . EXIT on ERROR silently is what i want. can anybody help.... No Worries!
-
Hi Every one How to avoid Application failure or ASSERT Dialog when application crash. I dont want famouse Cancel , Retry ,Abort or simple Ok , Cancel Dialog in release mode , to come up . I want whenever any thing goes wrong , my application simply exit.no intimation to user . EXIT on ERROR silently is what i want. can anybody help.... No Worries!
First of all you wont have that famouse window in the release build. To catch all the errors and simple get out, you can do this. put a try catch around the message pump, and in the catch terminate the program :-) Regards, Prakash. The World is getting smaller and so are the people.
-
Hi Every one How to avoid Application failure or ASSERT Dialog when application crash. I dont want famouse Cancel , Retry ,Abort or simple Ok , Cancel Dialog in release mode , to come up . I want whenever any thing goes wrong , my application simply exit.no intimation to user . EXIT on ERROR silently is what i want. can anybody help.... No Worries!
Last summer we had similar problems. Finally I bought the book "Debugging Applications for Microsoft .Net and Microsoft Windows", written by John Robbins. You should find this at Amazon. Also take a look at the www.wintellect.com[^] website, the employer of John Robbins, a company specialized in debugging. Also take a look at the CodeProject articles in the Debug Tips section (http://www.codeproject.com/debug/[^]). Some of the articles mention how to catch application crashes. Enjoy life, this is not a rehearsal !!!