Questions tagged [minidumpwritedump]

`MiniDumpWriteDump` is the Windows API function used to create a user-mode dump.

MiniDumpWriteDump is a Microsoft Windows DbgHelp function used to write user-mode minidump information to a specified file handle

25 questions
17
votes
5 answers

Reducing the size of minidumps of managed programs while keeping some heap information?

With the dump debugging support in .NET 4.0 we are looking into automatically (after asking the user of course :) creating minidumps of C# program crashes to upload them to our issue tracking system (so that the minidumps can assist in resolving the…
Ziphnor
  • 1,022
  • 1
  • 8
  • 17
5
votes
2 answers

What is minimum MINIDUMP_TYPE set to dump native C++ process that hosts .net component to be able to use !clrstack in windbg

There is native C++ application that hosts several .net components. When some error occurs this application creates mini dump using MiniDumpWriteDump function. Question here what is minimum set of [Flags ]enum MINIDUMP_TYPE { MiniDumpNormal =…
Stanislav Berkov
  • 5,929
  • 2
  • 30
  • 36
4
votes
1 answer

MiniDumpWriteDump() function's parameters: Why do we need a handle and an ID?

I checked the definition of MiniDumpWriteDump() method on MSDN as below: BOOL WINAPI MiniDumpWriteDump( __in HANDLE hProcess, __in DWORD ProcessId, __in HANDLE hFile, __in MINIDUMP_TYPE DumpType, __in PMINIDUMP_EXCEPTION_INFORMATION…
smwikipedia
  • 61,609
  • 92
  • 309
  • 482
4
votes
3 answers

MiniDumpWriteDump and its MINIDUMP_TYPE type

Not so long time ago we understood that even the release build can function incorrectly - can fall - can hang and etc. So we decided to implement dump creation procedure. All steps rather quickly have been found at Internet. But one - the main thing…
graphElem
  • 123
  • 2
  • 10
3
votes
1 answer

MiniDumpWriteDump another process

I'm trying to create a service with the goal of monitor the applications created by my company. When the app gets the state of No responding, the service have to generate a a dump with MiniDumpWriteDump. The problem is: when using HANDLE of another…
Kevin Kouketsu
  • 786
  • 6
  • 20
3
votes
1 answer

Is it possible to resize memory.dmp file after creation?

I feel kind of lazy asking this one, but I don't seem to be able to summon up the correct google query to find answers to the question(s) I have. A bit of background. I have an app that will monitor other processes for unhandled exceptions and…
rb_
  • 613
  • 9
  • 24
3
votes
1 answer

C++ MiniDumpWriteDump - FullMemoryDump doesn't give me much information

I've been using MiniDumpWriteDump to generate dump files on a crash. I've been trying to do a full memory dump. This seems to work, and generates a large file as expected. However when I load this huge file into Visual Studio (2005) I don't seem to…
Rich
  • 3,722
  • 5
  • 33
  • 47
3
votes
3 answers

MiniDumpWriteDump and writing multiple dumps for the same crash?

TL;DR Does it make sense to write multiple dumps for the same crash event, and if yes, what do you need to look out for. We're using MiniDumpWriteDump to write a crash dump when there is a unhandled-exception / abort / younameit in our…
Martin Ba
  • 37,187
  • 33
  • 183
  • 337
2
votes
2 answers

Why is MiniDumpWriteDump failing?

I have created my own debugger application. It attaches to a process and creates a crash dump file. That works most of the time. The problem I have is that it will not work when the application being debugged is waiting for a mutex object (and this…
SparkyNZ
  • 6,266
  • 7
  • 39
  • 80
2
votes
0 answers

Creating a watchdog to capture minidumps

I'm trying to add the functionality of capturing mini-dumps when my program crashes. From what I've read, this is best achieved by use of another application (the watchdog) that is used to host the real application, and performs the dump. From…
wforl
  • 843
  • 10
  • 22
2
votes
0 answers

MiniDumpWriteDump fails with MiniDumpNormal but works with MiniDumpWithFullMemory

I'm calling MiniDumpWriteDump API from a top level exception handler from a local service app running on Windows XP SP3 like so: _MINIDUMP_EXCEPTION_INFORMATION ExInfo; DWORD dwProcID = ::GetCurrentProcessId(); DWORD dwThreadID =…
ahmd0
  • 16,633
  • 33
  • 137
  • 233
2
votes
1 answer

MiniDumpWriteDump segfault?

I am trying to dump a process, say calc.exe When I run my program I get Program received signal SIGSEGV, Segmentation fault. 0x0000000000401640 in MiniDumpWriteDump () Here is the code #include #include int main(){ …
Zombo
  • 1
  • 62
  • 391
  • 407
1
vote
0 answers

No module information in minidump on win 11

There are problems with my application on win 11. For some reason, when running win10 version of my application, there is no needed information in the minidump crash file. Using the minidump_dump tool I figured out, that there are no debug_id and…
1
vote
1 answer

Exceptions while using MiniDumpWriteDump() Win32 API while debuging

I spawn a process "2" from a process "1" in C++/CLI. While both are running, process "1" kills process "2" (by design). My goal is to produce a mini dump of "2" just before killing it. Here is my code: // mpProcess started with…
dom_beau
  • 2,437
  • 3
  • 30
  • 59
1
vote
2 answers

How do I get a meaningful stack-trace using MiniDumpWriteDump

I'm trying to programatically generate a stack trace. When my users are having a crash, in particular a random one, it's hard to talk them through the process of getting a dump so I can fix the problem. In the past once they would send me the trace…
Kmus
  • 11
  • 4
1
2