none
How to enable dump of Environment.FailFast method

    Question

  • I have a process which is using the .NET framework version 3.5 (I cannot switch to 4.0 for reasons beyond my control).  The process runs on either Windows 7 or Windows 2008 Server and, in my case, these are 64 bit OSs.  The process that my .NET code runs in is a 32 bit process.  What I do in my .NET code is to call System.Environment.FailFast and I cannot seem to be able to get dump files generated.  I can get dump file for 4.0 framework code but that isn't what I have.

    Here is a similar link but it is talking about earlier OSs:

    http://social.msdn.microsoft.com/Forums/en-US/clr/thread/0f8dbd4d-c4dc-454e-93a0-4085b0aa416a

    Here is a related link:

    http://msdn.microsoft.com/en-us/library/windows/desktop/bb787181(v=vs.85).aspx

    I created and configured the LocalDumps key but when I run the process (using ProcessMonitor) it does not seem like this key is being used.  I am so confused.

    The reason that I used FailFast was that I like the fact that it puts an entry in the Event Log and I love the idea of generating dumps files that customers can send to me.  One of the host processes my code runs in is interactive and another one is not (it is a process which is forked off by a service).  I mention this I need a solution which does not require interacting with the user.  If someone has an alternative solution then I'd be interested in that as well.

    Saturday, September 24, 2011 8:24 PM

All replies