For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

CSharp sample crashes at myView()->SetWindow(aWNTWindow);

Philipp Schneeberger's picture


I am using vc14 and win64. The CSharp WinForms sample crashes (after a successful build) at "myView()->SetWindow(aWNTWindow);" in OCCTProxy.cpp with the following message:

Exception thrown: 'System.Runtime.InteropServices.SEHException' in OCCTProxy.dll
The program '[9456] IE_WinForms.vshost.exe' has exited with code -1073741819 (0xc0000005) 'Access violation'.

Any idea on what may cause the problem? Thank you.