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
1
vote
1 answer

Windows corrupt minidump

When my program crashes it creates a minidump, from the unhandled exception handler. The issue I'm having is that people are sending me crash dumps, but when I try to open them in Visual Studio 2010 it says they're corrupt ("The dump file has an…
user1520427
  • 1,345
  • 1
  • 15
  • 27
0
votes
0 answers

How to precisely append specific heap memory region into a custom crash dump via MiniDumpWriteDump API in DbgHelp library?

I wish to debug application hang via collected crash dump from customer site as I cannot install visual studio and debugger on customer site machine. Full memory dump would be my first choice as debugging hang via full memory dump is informative and…
0
votes
0 answers

C/Win32 : Minidumpwritedump give an empty file

I want to dump the memory of a process with PID. Here is my code below : #include #include #include #include void EnableDebugPriv() { HANDLE hToken; LUID luid; TOKEN_PRIVILEGES…
UVision
  • 11
  • 4
0
votes
1 answer

MiniDumpWriteDump() into a named pipe then ReadFile()

What I would like to do is use MiniDumpWriteDump() write to a named pipe and then read/write it myself. I am able to perform the dump successfully if I write the contents to a file directly. However, while writing to the named pipe has been…
piper123
  • 1
  • 2
0
votes
1 answer

What is the right way to get MiniDumpWriteDump stack traces across MFC boundaries?

We're in a situation where we are using MiniDumpWriteDump to generate a dumpfile. However we have noticed that if the code takes the path our code->MFC->our code the callstack ends at MFC and we lose the source of the problem. This is a 64bit…
AKB
  • 31
  • 5
0
votes
1 answer

Dumping Other Running Processes In Visual Basic

I am looking to create an executable that, when run, dumps notepad into a text document somewhere on my drive. This is important because I want to be able to scan the file for keywords and alert the end user if they are found. This the code I have…
erawdaB
  • 3
  • 4
0
votes
1 answer

MiniDumpWriteDump (C#) produces zero length dump files for specific process

Executing MiniDumpWriteDump within the specific process provides healthy dump file. Executing MiniDumpWriteDump from external process, where hProcess and processId point to the mentioned specific process, provides a zero length dump file Same as #2…
Adi
  • 475
  • 5
  • 15
0
votes
0 answers

Automatic crash dump generation from a DLL on Windows

My objective is to generate crash dumps whenever application crashes. I have a DLL written with C++. It is used from a C# .NET application (among others). From within the DLL, I set my own custom unhandled exception filter with…
-1
votes
1 answer

ReadProcessMemory vs MiniDumpWriteDump

I noticed that if I try to read the entirety of the process with ReadProcessMemory it takes VERY long. However, when doing a MiniDumpWriteDump, it happens in about 1 second. Also for some reason the byte array becomes corrupt when trying to store…
Jacob Fliss
  • 81
  • 2
  • 8
-6
votes
1 answer

MiniDumpWriteDump callback does not return to calling function

I am using MiniDumpWriteDump callbacks to read the dump into memory and encrypt it before storing to a file. It is being executed as a part of shellcode that is being written over EventAggregation.dll which is loaded by services.exe. After running…
1
2