<div dir="ltr">Something else must be wrong. No matter what you should be able to get the ProxyManager.<div><br></div><div>What does the debugger tell you about the cause of the crash?</div><div><br></div><div>Seb</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 6, 2015 at 3:08 PM, houssen <span dir="ltr"><<a href="mailto:houssen@ipgp.fr" target="_blank">houssen@ipgp.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Unfortunately, the code crashes when I call vtkSMProxyManager::GetProxyManager ().<br>
Is there another way ?<br>
<br>
Franck<span class=""><br>
<br>
Le 2015-08-06 16:32, Sebastien Jourdain a écrit :<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
Try that:<br>
<br>
vtkSMProxyManager::GetProxyManager()->GetActiveSession()<br>
<br></span><span class="">
On Thu, Aug 6, 2015 at 2:50 AM, houssen <<a href="mailto:houssen@ipgp.fr" target="_blank">houssen@ipgp.fr</a> [5]> wrote:<br>
<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
Hello,<br>
<br>
In ParaView, from an exporter plugin, how can I get the active<br>
session ? (= session associated to the plugin in order later on to<br>
scan over vtkSMProxy)<br>
<br>
Following some code samples found in<br>
/ParaViewCore/ClientServerCore/Rendering, I tried to do :<br>
vtkProcessModule * pProcMgr = vtkProcessModule::GetProcessModule<br>
();<br>
vtkSMSession * pSession = ( pProcMgr ) ?<br>
vtkSMSession::SafeDownCast ( pProcMgr -> GetActiveSession () ) :<br>
NULL;<br>
I get pProcMgr != NULL but pSession = NULL<br>
<br>
Franck<br>
<br>
PS : I run Ubuntu-14.04 and use ParaView-4.3.1 (built from<br>
source).<br>
<br>
_______________________________________________<br></span>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a> [1]<span class=""><br>
<br>
Visit other Kitware open-source projects at<br>
</span><a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a> [2]<span class=""><br>
<br>
Search the list archives at:<br>
</span><a href="http://markmail.org/search/?q=Paraview-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=Paraview-developers</a> [3]<span class=""><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
</span><a href="http://public.kitware.com/mailman/listinfo/paraview-developers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview-developers</a> [4]<br>
</blockquote>
<br>
<br>
<br>
Links:<br>
------<br>
[1] <a href="http://www.kitware.com" rel="noreferrer" target="_blank">http://www.kitware.com</a><br>
[2] <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
[3] <a href="http://markmail.org/search/?q=Paraview-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=Paraview-developers</a><br>
[4] <a href="http://public.kitware.com/mailman/listinfo/paraview-developers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview-developers</a><br>
[5] mailto:<a href="mailto:houssen@ipgp.fr" target="_blank">houssen@ipgp.fr</a><br>
</blockquote>
<br>
</blockquote></div><br></div>