views:

279

answers:

1

I'm trying to create a minidump of the managed process, which would be loadable into Visual Studio 2008. I'm using following code to create a minidump:

...
MINIDUMP_TYPE dumpType =  static_cast< MINIDUMP_TYPE >(
  MiniDumpWithFullMemory |  MiniDumpWithDataSegs | MiniDumpWithHandleData |
  MiniDumpWithProcessThreadData | MiniDumpWithPrivateReadWriteMemory );
BOOL bSuccess = MiniDumpWriteDump(
  hProcess, dwProcessID, hFile, dumpType, NULL, NULL, NULL );
...

I tried a lot of other combinations of MINIDUMP_TYPE, but none yielded me what I wanted: to be able to load dump file into Visual Studio, so that a managed code shows up, the way it does when you "attach to process". Dump file is getting loaded and I can use it as a native code. But when I try to debug it as managed code ( http://vvcap.net/db/gkqmlA9qbQIK47-patap.htp ), I'm receiving following error: "The specified file is an unrecognized or unsupported binary format" ( http://vvcap.net/db/lw5cEvSMl3yiiHRkt87R.htp )

+1  A: 

Managed dump debugging is not a supported feature of Visual Studio 2008. At least debugging it as managed code is not. You can use WinDbg to a limited extent for this type of file.

JaredPar
thanks... let me hold on to the thread for a little longer, maybe there will be some other suggestions, but otherwise I'll accept your answer
galets