Can I force a program to crash?

  • Thread starter Thread starter chris
  • Start date Start date
C

chris

It may seem an odd question but in the Windows courses I give, I would
like to simulate a program crash, in order to be able to show the
tasks window and the "Not responding" text. Now I know most programs
crash from time to time but they won't do it on the right moment ;-(
So if you know of a way to force a program to crash, please let me
know.
Tia,
Chris
 
chris said:
It may seem an odd question but in the Windows courses I give, I would
like to simulate a program crash, in order to be able to show the
tasks window and the "Not responding" text. Now I know most programs
crash from time to time but they won't do it on the right moment ;-(
So if you know of a way to force a program to crash, please let me
know.
Tia,
Chris

Just write a little application that performs an illegal operation - use an
invalid pointer or divide by zero? The application would then crash.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top