ssk
ssk

Reputation: 9265

Creating process dump on the fly when it crashes

Is there a way one can force the process to create dumps whenever it crashes. I have an exe running in different OS's and I would like to create a dump whenever it crashes.

By different OS's, I mean different versions of Windows. On XP, you can create using DrWtsn or in > Vista, one can use windows error reporting services. I want to force it programmatically.

Upvotes: 0

Views: 905

Answers (2)

MSN
MSN

Reputation: 54634

MinidumpWriteDump. It doesn't even have to be called from the same process, although there are some restrictions on that.

You should also make sure you archive your application symbols appropriately if you are getting minidumps from deployed applications. See Symbol Server and Symbol Stores on MSDN.

Upvotes: 1

Vivek Goel
Vivek Goel

Reputation: 24160

if you are using linux you can set core limit using

ulimit -c [core size]

example :

ulimit -c 6000

you need to create a wrapper script for the application or set it in terminal.

or if you have source code you can use function

setrlimit to set core limit.

Upvotes: 0

Related Questions