[vtkusers] An unhandled exception of type 'System.AccessViolationException' occurred in vtkFormsWindow.dll.. while using VTK .NET Wrapper

Ritesh Haria ritesh.haria at gmail.com
Sun Dec 19 03:05:41 EST 2010


Dear Mr. Mark,

I am using Programming with VTK .NET Wrappers control
vtkFormsWindowControl (http://vtkdotnet.sourceforge.net/Programming.html)
user control to display a dicom image and add window level feature to it.
I am able to display the image. On right mouse click and drag it zooms in
and out as expected.
On left click and drag it should perform window and level operations. But
when I left click mouse, I get the following error:

An unhandled exception of type 'System.AccessViolationException' occurred in
vtkFormsWindow.dll

Additional information: Attempted to read or write protected memory. This is
often an indication that other memory is corrupt.

> vtkFormsWindow.dll!vtk::vtkFormsWindowControl::OnMouseDown(System::Windows::Forms::MouseEventArgs^
ea = 0x03cfe4d4) Line 401 C++


Kindly provide a feasible solution

Thanking you,
Ritesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101219/5d84d989/attachment.htm>


More information about the vtkusers mailing list