Crash in RepetierHost 1.6.2 on Windows 7x 64

Hallo,
I have crash in RepetierHost 1.6.2 on Windows 7x 64 during print. The windows event log show:

Application: RepetierHost.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
Stack:
   at RepetierHost.model.GCodePath.Free()
   at RepetierHost.model.GCodeVisual.Dispose(Boolean)
   at RepetierHost.model.GCodeVisual.Finalize()

P.S: Looking in the old code in github, the function "Dispose" don't use boolen (disposing) variable as described in best practice from MS and it try to free some resources from Finalize call and this can lead in 99.99% to the crash.

Alexandr.

Comments

  • Thanks for the hint. I looked into current code and Free can be called several times without issues. My guess is that the violation comes from freeing the OpenGL buffers as these are the only unmanaged memory parts. These are protected by a flag if they are set and I could not find a place where the flag was set without having allocated them. So a bit unclear why this happened to you. The function is after all called thousands of times per print for many user and normally has no issues. Maybe video ram was full leading to unexpected behaviour.

    I assume this also does not happen regularly to you?
Sign In or Register to comment.