Visual Studio 2010 Crashes

Visual Studio 2010 crashes a lot while doing WPF and Silverlight development for me. Anyone else having that same problem? It happens frequently after resuming my PC from ‘sleep’ or ‘hibernation’ …, but that could be a coincidence.

Microsoft Visual Studio 2010 has stopped working

Interestingly, one of the functions in the stack trace is a PNG encoder. PNG’s are my image file of choice in Silverlight and web applications. I know the project that was currently loaded contains several PNG files. Maybe there’s no connection.

     ntdll.dll!_RtlReportCriticalFailure@8()  + 0x57 bytes   
     ntdll.dll!_RtlpReportHeapFailure@4()  + 0x21 bytes   
     ntdll.dll!_RtlpLogHeapFailure@24()  + 0xa1 bytes   
     ntdll.dll!_RtlFreeHeap@12()  + 0x4ffeb bytes   
     kernel32.dll!_HeapFree@12()  + 0x14 bytes   
     WindowsCodecs.dll!WPF::ProcessHeapImpl::Free()  + 0x1c bytes   
>    WindowsCodecs.dll!DynArrayImpl<0>::~DynArrayImpl<0>()  + 0x104f bytes   
     WindowsCodecs.dll!CPngFrameEncode::~CPngFrameEncode()  + 0x66 bytes   
     WindowsCodecs.dll!CPngFrameEncode::`vector deleting destructor'()  + 0xd bytes   
     WindowsCodecs.dll!CMILCOMBase::InternalRelease()  + 0x24 bytes   
     WindowsCodecs.dll!CResetStream::Release()  + 0xe bytes   
     wpfgfx_v0400.dll!MILRelease()  + 0xe bytes   
     PresentationCore.ni.dll!5e74f2b1()    
     [Frames below may be incorrect and/or missing, no symbols loaded for PresentationCore.ni.dll]   
     PresentationCore.ni.dll!5e74f2b1()    
     PresentationCore.ni.dll!5e74f2fe()    
     clr.dll!_CallDescrWorker@20()  + 0x33 bytes   
     clr.dll!_CallDescrWorkerWithHandler@24()  + 0x8a bytes   
     clr.dll!MethodDesc::CallDescr()  + 0x148 bytes   
     clr.dll!MethodDesc::CallTargetWorker()  + 0x21 bytes   
     clr.dll!SafeHandle::RunReleaseMethod()  + 0xc7 bytes   
     clr.dll!SafeHandle::Release()  + 0x7b257 bytes   
     clr.dll!SafeHandle::Dispose()  + 0x2d bytes   
     clr.dll!SafeHandle::Finalize()  + 0xb0 bytes   
     mscorlib.ni.dll!617b913b()    
     mscorlib.ni.dll!617b90b2()    
     clr.dll!MethodTable::SetObjCreateDelegate()  – 0x1fc874 bytes   
     clr.dll!MethodTable::CallFinalizer()  + 0x75 bytes   
     clr.dll!WKS::CallFinalizer()  + 0x80 bytes   
     clr.dll!WKS::GCHeap::TraceGCSegments()  – 0x1f9fc6 bytes   
     clr.dll!WKS::GCHeap::TraceGCSegments()  – 0x1fa08a bytes   
     clr.dll!WKS::GCHeap::FinalizerThreadWorker()  + 0xb1 bytes   
     clr.dll!Thread::DoExtraWorkForFinalizer()  – 0xc291e bytes   
     clr.dll!Thread::ShouldChangeAbortToUnload()  + 0x1251e bytes   
     clr.dll!Thread::ShouldChangeAbortToUnload()  + 0x125d9 bytes   
     clr.dll!ManagedThreadBase_NoADTransition()  + 0x35 bytes   
     clr.dll!ManagedThreadBase::FinalizerBase()  + 0xf bytes   
     clr.dll!WKS::GCHeap::FinalizerThreadStart()  + 0xfb bytes   
     clr.dll!Thread::intermediateThreadProc()  + 0x48 bytes   
     kernel32.dll!@BaseThreadInitThunk@12()  + 0x12 bytes   
     ntdll.dll!___RtlUserThreadStart@8()  + 0x27 bytes   
     ntdll.dll!__RtlUserThreadStart@8()  + 0x1b bytes