have a code in ASP.NET Application that use unmanaged resources.
this code goes for a list of objects and make some operations with Unmanaged Interop.
this code wrapped by lock to prevent concurency execution.
private static object one_renderer_at_time = new object();
// code here
Code inside lock works fine if One Request comming to server. But if in time when this code running Second request comes( either to anoter page taht is not run this code ), IIS workerProcces crashed with error:
Faulting application w3wp.exe, version 7.0.6001.18000, time stamp 0x47919413, faulting module ntdll.dll, version 6.0.6001.18000, time stamp 0x4791a7a6, exception code 0xc0000374, fault offset 0x000b01
I'm pretty sure that I'm cleanup all unmanaged resources after use. Memory usage of IISWorkerProccess is stable aprox 300Mb. In Any case, i think, this should not be a cause of crash.