10 Replies - 1843 Views - Last Post: 07 March 2013 - 08:56 PM

Force Crash

I was wondering if anyone would be able to create me a simple application that will crash on start up?

I don't want it to do anything other than crash itself and report back to Task Manager that it isn't responding.

The reason I ask for this is because I am making an application that monitors a given process (the user chooses that) and if the application stops responding it kills the process then re-starts it for them.

I have the restarting bit all good and well, I just need to test the crash detection because I'm using the process' responding state and i want to make sure I have my logic structures in right to detect a crash.

Re: Force Crash

Posted 06 March 2013 - 08:39 AM

Thanks baavgai, but if I were to code it I would need VB code. However, the infinite loop does cause it to stop responding and report that to task manager so I am gonna go with cfoley's suggestion. Thanks anyway guys, if I knew how to mark this as resolved I would.