<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18702"><!-- converted from rtf -->
<STYLE>.EmailQuote {
        BORDER-LEFT: #800000 2px solid; PADDING-LEFT: 4pt; MARGIN-LEFT: 1pt
}
</STYLE>
</HEAD>
<BODY>
<DIV dir=ltr align=left><FONT size=2 face=Arial><SPAN 
class=123325719-22022011>Hello,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT size=2 face=Arial><SPAN class=123325719-22022011>I 
received support from Kitware (thanks&nbsp;David Cole)&nbsp;and wanted to 
contribute back to the user list.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT size=2 face=Arial><SPAN 
class=123325719-22022011></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT size=2 face=Arial><SPAN 
class=123325719-22022011>When using ActiViz, it is important to hold .NET 
managed references to vtk objects or objects used by vtk objects.&nbsp; Skipping 
this step often will result in AccessViolationExceptions where .NET performs 
garbage collection on memory that is still being used by VTK.&nbsp; This is 
especially necessary for .NET event handlers.</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN 
class=123325719-22022011></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial><SPAN 
class=123325719-22022011>Cheers,</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN 
class=123325719-22022011>Bjorn</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT size=2 face=Arial></FONT><FONT size=2 
face=Arial></FONT><BR></DIV>
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> vtkusers-bounces@vtk.org 
[mailto:vtkusers-bounces@vtk.org] <B>On Behalf Of </B>Oksnevad, 
Bjorn<BR><B>Sent:</B> Monday, February 21, 2011 4:06 PM<BR><B>To:</B> 
vtkusers@vtk.org<BR><B>Subject:</B> [vtkusers] ActiViz 
vtkImagePlaneWidget<BR></FONT><BR></DIV>
<DIV></DIV><FONT size=2 face="Arial, sans-serif">
<DIV>Hello,</DIV>
<DIV>I am new to ActiViz as well as new to the user group.</DIV>
<DIV>I am trying to use the vtkImagePlaneWidget to view a custom format MRI data 
source.&nbsp; The plane is rendered for the first view successfully.&nbsp; When 
I start to interact with the plane, I get the following exception:</DIV>
<DIV>&nbsp;</DIV>
<DIV>System.AccessViolationException was unhandled</DIV>
<DIV>&nbsp; Message="Attempted to read or write protected memory. This is often 
an indication that other memory is corrupt."</DIV>
<DIV>&nbsp;</DIV>
<DIV>Does anyone have tips on how to read image data from file using C# and then 
transferring the data to a vtkImageData object and setting up the 
vtkImagePlaneWidget?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks!</DIV>
<DIV>Bjorn</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></FONT>
<P>[CONFIDENTIALITY AND PRIVACY NOTICE] Information transmitted by this email is 
proprietary to Medtronic and is intended for use only by the individual or 
entity to which it is addressed, and may contain information that is private, 
privileged, confidential or exempt from disclosure under applicable law. If you 
are not the intended recipient or it appears that this mail has been forwarded 
to you without proper authority, you are notified that any use or dissemination 
of this information in any manner is strictly prohibited. In such cases, please 
delete this mail from your records. To view this notice in other languages you 
can either select the following link or manually copy and paste the link into 
the address bar of a web browser: 
http://emaildisclaimer.medtronic.com</P></BODY></HTML>