System.TypeInitializationException

tizzo233tizzo233 Posts: 2
edited August 28, 2014 7:06PM in ANTS Memory Profiler 8
I am calling the TakeSnapShot API, and I get the following error. My application is .net 3.5. I have the memory profiler open and running. I can take snap shots manually.

2014-08-28 15:41:25,607 ERROR RuntimeService- RedGate.MemoryProfiler: caught exception, error message: System.TypeInitializationException: The type initializer for '#c.#b' threw an exception. ---> System.TypeInitializationException: The type initializer for '#Xdi' threw an exception. ---> System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at #kZ.#jZ.#Xdi..cctor()
--- End of inner exception stack trace ---
at #kZ.#jZ.#Udi.#jei()
at #kZ.#jZ.#Udi.#kei(Byte[] #vAo, Int32 #txc, Int32 #9zx)
at #kZ.#jZ.#H3(Byte[] #qXi)
at #kZ.#jZ.#H3(Byte[] #qXi)
at #c.#b..cctor()
--- End of inner exception stack trace ---
at #c.#b.#Jj(Int32 #UIrc)
at #BaV.#b.#78()
at #BaV.#b.#FaV()
at RedGate.MemoryProfiler.Snapshot.TakeSnapshot()
at Intel.STHI.Device.Runtime.RuntimeService.TakeMemorySnapShot(Object sender, ElapsedEventArgs e) in c:\PPV\Common DLLs\DRT\DeviceRuntime.cs:line 466
Sign In or Register to comment.