<DIV> </DIV>
<DIV> </DIV>
<DIV>Hi:</DIV>
<DIV> I use vc.net2003 as compile tool.I use MFC function SetTimer(1,2000,NULL) to set a Timer in a CView's object that a vtkWin32OpenGLRenderWindow's object (renWin)attach to.I hope that every 2 seconds renWin can be invalidated for the render in renWin has been updated by the following code:</DIV>
<DIV> renWin->AddRenderer(renderer);</DIV>
<DIV>and before above codes,I use the following code to remove render before</DIV>
<DIV> renderer->GetViewProps()->RemoveAllItems();</DIV>
<DIV> However,when I use renWin->Render() ,my compiler appear </DIV>
<DIV> Unhandled exception at 0x10036bc0 in (My exe file): 0xC0000005: </DIV>
<DIV> Access violation reading location 0xc1b155a4.</DIV>
<DIV> Please tell me what should I do?</DIV>
<DIV> </DIV><br><!-- footer --><br><hr>
<a style="font-size:12px;line-height:15px; color:#000; text-decoration:none" href="http://www.126.com/" target="_blank">想加入吗?1.9亿用户正在使用网易邮箱 <span style="font-family:Tahoma; text-decoration:underline; color:blue">www.126.com</span> </a>