Re: Windows console error exit
- Posted by Andy Serpa <ac at onehorseshy.com> Apr 29, 2004
- 441 views
A syntax error, type error, 1/0 error -- anything that causes an ex.err file to be created. I have a parent program running a child program. I want the parent to be able to re-run the child if the child crashes -- the child crashing in this context can be considered normal behavior -- the parent will examine the resulting ex.err file. But the child never exits because it is sitting there with a "Press Enter...". I can TerminateProcess() the child, but then I have to come up with some complex way to determine if the child has aborted (but is hanging). It would be much better if the process simply terminated itself. I imagine if I bought the source code, this would be a trivial change, or maybe someone can compile me such a version?