Reputation: 449
I'm doing batch-testing on our win32 c++ programs. Some of them crash. What's the best way to catch those crash from the command line and report it?
thanks
edit: answer:
1) you can't catch another process's exception from batch / command line
2) example to do it right in c#:
How to handle a crash in a process launched via System.Diagnostics.Process?
Upvotes: 1
Views: 2434
Reputation: 30842
There is a way of catching exceptions and crashes from the command line: use ADPlus in crash mode and it will sit in the background listening for unhandled exceptions.
See also Win32: Is there a difference between Dr. Watson's full/mini dumps and writing my own?
Upvotes: 1
Reputation: 338
there are two ways to catch, 1. Have a monitoring exe running as service or process. 2. Or implement crash class in windows may be usefull
Upvotes: 0