Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: How Can I Intentionally Crash One of My Applications?

03 Aug 2013   #1

Windows 7 Ultimate x64
How Can I Intentionally Crash One of My Applications?

I'm doing some testing for the software company I work for and need to generate some .WER files. The "problem" is that my system is too stable :) Is there anyway to intentionally crash an application so it will generate a .WER file?

Ending the Process won't do it. And a BSOD isn't what I'm after. This is specifically to get to application crash files

My System SpecsSystem Spec
03 Aug 2013   #2

Windows 10 Pro X64

Well you could go in the application folder and delete some of it's files. Would probably just give an error loading rather than crash. Which application do you have in mind?
My System SpecsSystem Spec
03 Aug 2013   #3

Windows 7 Ultimate x64

I think the easiest way is for the developers to include an intentionally broken codepath in a debug build so that, when triggered by some rather obscure command will cause the program to fail. Something like this will do, if you're able to recompile it:

int dividend=1;
int divisor=0;
int result=dividend/divisor; //KABOOM here, division by zero

Of course, testing code like this should NEVER be released, just used for testing purposes internally.

Another way could be deleting dependencies while the program is running, say deleting or blocking data files it uses, but here the app may react gracefully if it's really so stable. Inyecting faulty code by means of replacing one of its DLLs is another option.
The most probable way I can think of without so much programming knowledge would be to use Process Explorer to tamper with its internal state. If you go to its process and see the list of open handles, you can force close on them, say on files, or most critically unload DLLs (PE will warn that it could unstabilize the program, but since it's the intended effect go ahead). It's really a trial and error, until you find a weak point that the devs haven't took into account.
My System SpecsSystem Spec

03 Aug 2013   #4

Windows 7 Ultimate x64

@Alejandro85, the software is already in production, so I don't want to bother the devs with including extra code (esp since it's the weekend) just so I can muck with the system. This is much more basic research on my part, so the exact application that crashes is irrelevant.

@Dude, really any program. Firefox, Chrome, Libreoffice, Irfanview, VideoLan...

All I really need is just to generate a WER file... preferably without borking my system in the process :)
My System SpecsSystem Spec

 How Can I Intentionally Crash One of My Applications?

Thread Tools

Similar help and support threads
Thread Forum
Win7/Pro x64 - Increasingly Unstable - Applications Crash on Save
I am trying to print a copy of a long set of screen shots posted by jumanji so that I can carefully follow his instructions for using testdisk to copy a drive to a backup drive before working on the original. Last night I could snip and paste the images into a Word document for printing and to...
General Discussion
All Start-up Applications Crash Even in Safe Mode
I have a Windows 7 x64 Gateway and recently my laptop froze completely, for 20 minutes, until I finally powered it down. Upon restarting, I found that all of my on-start applications had crashed and I was unable to access any files, desktop icons, or even the windows key/Start. The problem...
General Discussion
Applications Crash When Trying to Print
No matter what the application I am trying to print from, as soon as I hit Print or Control + P the program crashes. Even when I was trying to print a test page, as soon as I hit the button Windows Explorer crashed. I am running Windows 7 Home Premium 32bit with Intel Core 2 Duo and 2GB RAM. The...
BSOD Help and Support
Processor Intensive Applications Crash PC
Everytime I run a processor intensive application (Video Compression, Running Market Simulations, etc.) After five to ten minutes my machine crashes. If I run the same applications with shorter jobs it completes and the machine doesn't crash. This is a hard crash where everything just blanks...
BSOD Help and Support
Save/Open Dialog box crash internet applications
Any application connected to the internet (From what I have tested, MSN messenger, Firefox and IE), when I use an open or save as dialog, the program freezes, then crashes. The event viewer only shows an error message for IE, which states : "Faulting application name: iexplore.exe, version:...
BSOD Help and Support

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 17:15.
Twitter Facebook Google+