Hi,David,<br><br>These caption widgets are used for 3d model text annotation. <br><br>My code architecture is as follow:<br><br>Dicom3DVolumeRenderer class (derived from C# UserControl) defines a RenderWindowControl, calls TextAnnocation class which is responsible for generate the caption widget for 3d model.<br><br>UserControl_Unloaded() is added for Dicom3DVolumeRenderer to remove all these widgets. But the crash happened before this method is called.<br><br>Thanks<br><div><br><br></div>
<span>
</span>
<br> 在2016-09-26,"David Cole" <DLRdave@aol.com> 写道:
<blockquote id="isReplyContent" style="padding-left:1ex; margin: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
-----原始邮件-----<br>
<b>发件人:</b>"David Cole" <DLRdave@aol.com> <br>
<b>发送时间:</b>2016年09月26日 星期一<br>
<b>收件人:</b>"Liu_tj" <tjlp@netease.com><br>
<b>抄送:</b>"vtkusers" <vtkusers@vtk.org><br>
<b>主题:</b>Re: [vtkusers] vtkOpenGLRenderWindow::GetFrontBuffer throw system access violation when using vtkCaptionWidget<br>
<br><div>Try removing all your caption widgets from your list as the window is closing.<br><br>David</div><div id="AppleMailSignature"><br></div><div><br>On Sep 25, 2016, at 12:25 PM, Liu_tj <<a href="mailto:tjlp@netease.com">tjlp@netease.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div>Hi,</div><div><br></div><div>I am using Activiz .NET 7.1. In my application, I use a C# List to store the vtkCaptionWidget objects. When the application is closed, then system access violation exception is thrown. In Visual Stuido debugger, no call stack can be tracked. Then I used windbg to debug the application. Windbg show below message:</div><div><br></div><div>** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\Personal\Code\Dev\Chaos3D.UI.Application.FE\bin\Debug\vtkInteractionWidgets-7.1.dll - <br>vtkRenderingOpenGL_7_1!vtkOpenGLRenderWindow::GetFrontBuffer+0x1b51ce:<br>00007ff9`20d1b50c 488b00 mov rax,qword ptr [rax] ds:00000000`00000000=????????????????</div><div><br></div><div>The call stack is:</div><div>vtkRenderingOpenGL_7_1!vtkOpenGLRenderWindow::GetFrontBuffer+0x1b51ce</div><div>vtkInteractionWidgets_7_1!vtkBalloonWidget::vtkBalloonWidget+0x98b7d</div><div>vtkRenderingCore_7_1!vtkTransformInterpolator::InterpolateTransform+0x150ba9</div><div>vtkRenderingCore_7_1!vtkTransformInterpolator::InterpolateTransform+0x150f73</div><div>vtkCommonCore_7_1!vtkAnimationCue::Finalize+0x26ed1f</div><div>vtkCommonCore_7_1!vtkAnimationCue::Finalize+0x44c356</div><div>vtkCommonCore_7_1!vtkAnimationCue::Finalize+0x44ca96</div><div>vtkCommonCore_7_1!vtkAnimationCue::Finalize+0x44d3cb</div><div>vtkCommonCore_7_1!vtkAnimationCue::Finalize+0x44a082</div><div>vtkRenderingCore_7_1!vtkTransformInterpolator::InterpolateTransform+0x20c52b</div><div>vtkRenderingCore_7_1!vtkTransformInterpolator::InterpolateTransform+0x2069c2</div><div>Kitware_VTK_vtkRenderingCore_Unmanaged!vtkColorTransferFunction_GetIndexedColor_35+0x4c844</div><div><br></div><div>What might be the problem? What I can guess is it is about some unmanaged VTK resource release issue.</div><div><br></div><div>Thanks.</div><div>Liu Peng<br></div><br><br><span title="neteasefooter"><p> </p></span></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Powered by <a href="http://www.kitware.com">www.kitware.com</a></span><br><span></span><br><span>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a></span><br><span></span><br><span>Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a></span><br><span></span><br><span>Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers">http://markmail.org/search/?q=vtkusers</a></span><br><span></span><br><span>Follow this link to subscribe/unsubscribe:</span><br><span><a href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/mailman/listinfo/vtkusers</a></span><br></div></blockquote></blockquote><br><br><span title="neteasefooter"><p> </p></span>