creating minidump generates zero byte files

This is a discussion on creating minidump generates zero byte files within the Windows Programming forums, part of the Platform Specific Boards category; Hello,
Im using windebug.dll to generate a minidump file but sometimes a zero size file is written. I can reproduce ...

creating minidump generates zero byte files

Hello,

Im using windebug.dll to generate a minidump file but sometimes a zero size file is written. I can reproduce this when creating 2 threads that crash immediately even though there is a critical section around the function that generates the file. Does anybody know what the problem can be here?

Never mind, the problem was that the process containing the windows exception handler that generated the dump file was the same process as what caused the crash which can cause problems. Solution is to send the exception data to another process with WM_COPYDATA