<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hello everyone,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>My goal is to create windows that display images using
vtkImageActors.&nbsp; I&#8217;d like each of these windows to run in their own
thread, so I&#8217;m using CWinThread (MFC) to create all of the vtk related
objects and link them together.&nbsp; Then the thread enters its own message
loop, so to manipulate the window the user uses the mouse, or the main
application thread will send messages to the child thread(s). During the thread&#8217;s
creation I pass it a list of vtkImageData pointers that it uses as input for
the vtkImageActor.&nbsp; The vtkImageData list is created by the main
application&#8217;s thread.&nbsp; Whenever I change the input of the
vtkImageActor the program breaks (typically in free.c).&nbsp; My guess is that
by swapping in a new vtkImageData pointer the pipeline tries to free memory in
a non-theadsafe way.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I&#8217;ve tried this very same scenario using vtkTextActor
and a list of CString objects and it works without a hitch.&nbsp; If anyone has
any insight as to why the vtkImageActor setup would fail please share!!&nbsp;
Thanks.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><br>
Beau<o:p></o:p></span></font></p>

</div>

</body>

</html>