I am running VS2010 Pro with Windows 7 Pro 64-bit, with version 6.7.0 of OpenCascade.
I rebuilt the OCCT libraries in debug mode, win32. No reported problems during the lengthy rebuild.
Then I rebuilt the CSharp sample solution, excluding the WPF project. In order to do this, I had to change the .NET framework version of Winforms to 4.0 because that was the version specified by the OCCTProxy project and VS2010 would not allow me to proceed with mismatched versions as specified in the downloaded sample project (I see no way to change the .NET framework version of the OCCTProxy project).
Then I invoked the compiled sample program and, after minimal activity, I get AccessViolationException when I exit the program. The exception occurs at line 88 of Handle_Standard_Transient.hxx ("EndScope()" in a destructor).
I get this error even if all I do is create a new document (via File/New) and then immediately exit the program.
The relevant output states:
TKOpenGl.WinSystem | Type: Error | ID: 6 | Severity: High | Message:
wglMakeCurrent() has failed. The handle is invalid.
A first chance exception of type 'System.AccessViolationException' occurred in OCCTProxy.dll