<font color="#000000"><font size="2"><font face="tahoma,sans-serif">Hi<br><br></font></font></font><font color="#000000"><font size="2"><font face="tahoma,sans-serif">I enabled ClientServer logging and ran loadState twice, once before deleteAll and once after (</font></font></font><span class="p"><font size="2"><span style="font-family: arial,helvetica,sans-serif;"></span></font></span><span class="p"><font size="2"><span style="font-family: arial,helvetica,sans-serif;"></span></font></span><font size="2"><span style="font-family: arial,helvetica,sans-serif;"><a href="https://github.com/alexisylchan/ParaView/blob/simpleTwoParaView/Plugins/VRPN/pqVRPNStarter.cxx">https://github.com/alexisylchan/ParaView/blob/simpleTwoParaView/Plugins/VRPN/pqVRPNStarter.cxx</a></span></font><font color="#000000"><font size="2"><font face="tahoma,sans-serif">). During the first loadState, I saw this message:</font></font></font><br>
<font color="#000000"><font size="2"><font face="tahoma,sans-serif"><br>
Processing Message 0 = Invoke<br> Argument 0 = id_value {101}<br> Argument 1 = string_value {AddTimeSource}<br> Argument 2 = vtk_object_pointer {vtkSMSourceProxy (0929B080)}<br>Invoking Message 0 = Invoke<br> Argument 0 = vtk_object_pointer {vtkSMTimeKeeperProxy (0920BE20)}<br>
Argument 1 = string_value {AddTimeSource}<br> Argument 2 = vtk_object_pointer {vtkSMSourceProxy (0929B080)}<br>Empty Result<br><br><br>But the ClientServer choked before this message was reached during the second loadState.</font></font></font> Any idea why the TimeSource object creation is not working after pqDeleteReaction::deleteAll?<br>
<br><div class="gmail_quote">On Tue, Apr 12, 2011 at 10:35 AM, Alexis Chan <span dir="ltr"><<a href="mailto:alexisc@cs.unc.edu" target="_blank">alexisc@cs.unc.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><font color="#000000"><font size="2"><font face="tahoma,sans-serif"><span style="border-collapse: collapse; font-family: arial,sans-serif; font-size: 13px;"><font color="#000000"><font size="2"><font face="tahoma,sans-serif"><div>
<font color="#000000"><font size="2"><font face="tahoma,sans-serif">Hi</font></font></font></div><div><font color="#000000"><font size="2"><font face="tahoma,sans-serif"><br></font></font></font></div><div><font color="#000000"><font size="2"><font face="tahoma,sans-serif">I used </font></font></font>pqDeleteReaction::deleteAll(); in my Plugin to remove all pipeline proxies. When I use pqLoadStateReaction::loadState(const QString & filename) to load a state file, I get the following exception:</div>
<div><br></div><div>Unhandled exception at 0x5f9d3027 (vtkClientServer.dll) in paraview.exe: 0xC0000005: Access violation reading location 0xfeeefef2.</div><div><br></div><div>The debugger breaks at</div><div>vtkClientServerStream.cxx::GetArgumentObject(int message, int argument, vtkObjectBase** value, const char* type) const</div>
<div><br></div><div>line: if(obj && !obj->IsA(type))</div><div><br></div><div>The <b>type</b> is vtkSMSourceProxy</div><div><br></div><div><br></div><div>I think I may be misunderstanding some client-server relationship. How do I delete everything in the pipeline and load a new state?</div>
<div><br></div><div>Thanks in advance for any help on this.</div><div><br></div></font></font></font></span></font></font></font><br clear="all"><br>-- <br>Regards,<br><font color="#888888">Alexis<br><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Alexis<br><br>