![]() ![]()
This will also help to keep the minidumps grouped by application and version. The name of the dump file is up to the developer however, to avoid file name collisions, it is advisable to generate the file name from the application's name and version number, the process and thread IDs, and the date and time. This example demonstrates the basic usage of MiniDumpWriteDump and the minimum information necessary to call it. _except( GenerateDump( GetExceptionInformation())) HDumpFile, MiniDumpWithDataSegs, &ExpParam, NULL, NULL) ExceptionPointers = pExceptionPointers īMiniDumpSuccessful = MiniDumpWriteDump( GetCurrentProcess(), GetCurrentProcessId(), ThreadId = GetCurrentThreadId() ĮxpParam. HDumpFile = CreateFile(szFileName, GENERIC_READ|GENERIC_WRITE,įILE_SHARE_WRITE|FILE_SHARE_READ, 0, CREATE_ALWAYS, 0, 0) ĮxpParam. GetCurrentProcessId(), GetCurrentThreadId()) StringCchPrintf( szFileName, MAX_PATH, L"%s%s ", szPath, szAppName ) # include int GenerateDump(EXCEPTION_POINTERS* pExceptionPointers) #Unhandeld exception. save a crash dump how toThe following is a simple example of how to use MiniDumpWriteDump. The actual implementation is straightforward. This library is not thread-safe, so any program that uses MiniDumpWriteDump should synchronize all threads before attempting to call MiniDumpWriteDump. MiniDumpWriteDump is part of the DBGHELP library. #Unhandeld exception. save a crash dump codeHowever, note that MiniDumpWriteDump does not currently work with managed code and is only available on Windows XP, Windows Vista, Windows 7. This article demonstrates how to implement this option. Add the MiniDumpWriteDump function and the appropriate exception handling code to save and send a minidump directly to the developer. Use of a locally saved dump is only an option for in-house testing and debugging.Īdd code to your project. On the Debug menu, click Save Dump As to save a copy of a dump. Use a product from the Microsoft Visual Studio Team System. ![]() #Unhandeld exception. save a crash dump registrationFor an explanation of registration details, see Introducing Windows Error Reporting on MSDN's ISV Zone. ![]() Not sending minidumps to WER violates the requirements of Games for Windows.įor more information on how WER works, see How Windows Error Reporting Works. The ReportFault function handles all of the issues of connecting to and sending the minidump to WER. If you implement a custom routine for unhandled exceptions, you are strongly urged to use the ReportFault function in the exception handler to also send an automated minidump to WER.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |