Changeset 1976


Ignore:
Timestamp:
4/28/2010 7:19:49 AM (5 years ago)
Author:
lowjoel
Message:

Fixed compilation of the BlackBox? project since the DbgHelp? interop classes are internal to Eraser.Util.

Location:
trunk/eraser
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser/Eraser.BlackBox/BlackBox.cs

    r1973 r1976  
    170170            { 
    171171                //Store the exception information 
    172                 NativeMethods.MiniDumpExceptionInfo exception = 
    173                     new NativeMethods.MiniDumpExceptionInfo(); 
    174                 exception.ClientPointers = false; 
    175                 exception.ExceptionPointers = Marshal.GetExceptionPointers(); 
    176                 exception.ThreadId = (uint)AppDomain.GetCurrentThreadId(); 
    177  
    178                 NativeMethods.MiniDumpWriteDump(Process.GetCurrentProcess().Handle, 
    179                     (uint)Process.GetCurrentProcess().Id, stream.SafeFileHandle, 
    180                     NativeMethods.MiniDumpType.MiniDumpWithFullMemory, 
    181                     ref exception, IntPtr.Zero, IntPtr.Zero); 
     172                MiniDump.Dump(stream); 
    182173            } 
    183174        } 
  • trunk/eraser/Eraser.Util/Eraser.Util.csproj

    r1973 r1976  
    105105    <Compile Include="FileSize.cs" /> 
    106106    <Compile Include="Logger.cs" /> 
     107    <Compile Include="MiniDump.cs" /> 
    107108    <Compile Include="NativeMethods\DbgHelp.cs" /> 
    108109    <Compile Include="NativeMethods\Mpr.cs" /> 
Note: See TracChangeset for help on using the changeset viewer.