<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Thanks David, my question remains
      though, because I removed the thread and the actor didn't appear
      when I called it like this from the only (GUI) thread:<br>
      <br>
      void vtkMFCSingleView::AddActor(vtkSmartPointer&lt;vtkActor&gt;
      pActor)<br>
      {<br>
          Renderer-&gt;AddActor(pActor);<br>
          Invalidate();<br>
      }<br>
      <br>
      It still requires that I click on the view with the mouse for the
      actor to appear...  It worked fine when I added the actors while
      creating the view in OnInitialUpdate, but now I'd like to be able
      to add/remove actors while the view is rendering (only from the
      GUI thread of course).<br>
      <br>
      Mike<br>
      <br>
      <div class="moz-signature">
        <meta http-equiv="content-type" content="text/html;
          charset=UTF-8">
        <title></title>
        <p><br>
        </p>
      </div>
      On 7/12/2013 9:53 AM, David Cole wrote:<br>
    </div>
    <blockquote cite="mid:md5:tKw2ZSReOK48Gk2Ovc0IEw==" type="cite">
      <style data-externalstyle="true"><!--
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
}

p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst, p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle, p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
line-height:115%;
}
--></style>
      <div data-externalstyle="false" dir="ltr"
        style="font-family:Calibri,'Segoe UI',Meiryo,'Microsoft YaHei
        UI','Microsoft JhengHei UI','Malgun Gothic','Khmer UI','Nirmala
        UI',Tunga,'Lao UI',Ebrima,sans-serif;font-size:12pt;">
        <div>VTK is not easily usable from multiple threads. So, in
          general, you should restrict access to VTK objects to a single
          thread in your app, or use mutexes to guarantee that only one
          thread at a time has access to VTK objects. And, if you have
          to pick a thread to restrict the access to, use the same one
          that’s doing all the GUI stuff -- VTK rendering has to run in
          the GUI thread anyhow.</div>
        <div> </div>
        <div>HTH,</div>
        <div>David C.</div>
        <div> </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>