Is there a way one can forc开发者_C百科e 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.
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.
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.
精彩评论