Question: I'm running Visual Studio Team System Development Edition 2008 on Vista Business 64bit along with Resharper 4.5, Telerik Reporting 2009/Q2 and GhostDoc 2.5.9166.0 and it keeps crashing randomly. It typically happens when I start entering text into a .cs or text file. The event log gets an application error entry:

> 
> Faulting application devenv.exe,
>  version 9.0.30729.1, time stamp
>  0x488f2b50, faulting module ntdll.dll,
>  version 6.0.6002.18005, time stamp
>  0x49e03824, exception code 0xc0000374,
>  fault offset 0x000ab0bf, process id
>  0xb0, application start time
>  0x01ca255374e4ec56.
> 
> 
> 

Any thoughts?

Answer: 
The exception code 0xC0000374 is `STATUS_HEAP_CORRUPTION`. This exception's cause may be related to what you were doing at the time of the crash, but it also may be related to something else you did earlier in the same Visual Studio session. The suggestions about disabling add-ons and upgrading to SP1 are good. I suspect that overclocking or faulty RAM could also cause this, but would probably also cause random bug checks (BSODs).

You said that once you upgraded to Windows 7, the problem went away. Windows 7 has a new [fault tolerant heap (FTH)](http://msdn.microsoft.com/en-us/library/dd744764%28VS.85%29.aspx). If you saw the crash once with Windows 7 and never again, that might be the FTH mitigating whatever bug caused the heap corruption.
Ensure you are running the latest version of ReSharper. There was a known issue with one of the beta release that would cause a random crash when trying to edit anything related to HTML or CSS or when using the `<` or `>` keys. I would suggest disabling ReSharper first.