<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.E-MailFormatvorlage17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=DE link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Dear Members,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US>I wanted to get rid of the dependency on Python. The connection by pure C++ works just fine.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>The problem occurs when establishing the live connection to Paraview, closing Paraview and then try to send some data again.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>I tracked it down to the vtkSocket class inside the method Receive. After the connection is terminated on the Paraview side, e.g. by closing Paraview, the call of vtkLiveInsituLink::InsituUpdate gets stuck in the vtkSocket::Receive method. Even though I get a message that the connection was terminated.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>A temporary fix for my case was to replace in Line 609 of the vtkSocket.cxx if (nRecvd == 0) with if (nRecvd <= 0), because on disconnection the return value of nRecvd is -1. Then everything works well.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I only used the following methods in the given order to transfer the data:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>vtkLiveInsituLink::InsituUpdate<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>vtkSMSourceProxy::UpdatePipeline<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>vtkLiveInsituLink::InsituPostProcess<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Are there further steps to perform or is there a way to check if the connection is still alive?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Operating System: Windows 7, Visual Studio 2017<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Thanks,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Simon<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><div style='mso-element:para-border-div;border:none;border-bottom:solid windowtext 1.0pt;padding:0cm 0cm 1.0pt 0cm'><p class=MsoNormal style='border:none;padding:0cm'><span style='mso-fareast-language:DE'>Dipl.-Ing. Simon Klarmann<o:p></o:p></span></p><p class=MsoNormal style='border:none;padding:0cm'><span style='mso-fareast-language:DE'><o:p> </o:p></span></p><p class=MsoNormal style='border:none;padding:0cm'><b><span style='mso-fareast-language:DE'>Bau- und Umweltingenieurwissenschaften</span></b><span style='mso-fareast-language:DE'><br></span><span style='mso-fareast-language:DE'>Technische Universität Darmstadt<o:p></o:p></span></p><p class=MsoNormal style='border:none;padding:0cm'><span style='mso-fareast-language:DE'>Fachgebiet Festkörpermechanik<o:p></o:p></span></p><p class=MsoNormal style='border:none;padding:0cm'><span style='mso-fareast-language:DE'><o:p> </o:p></span></p><p class=MsoNormal style='border:none;padding:0cm'><span style='mso-fareast-language:DE'>Tel.: +49 6151 16 – 22642<o:p></o:p></span></p><p class=MsoNormal style='border:none;padding:0cm'><span style='mso-fareast-language:DE'>Mail: <a href="mailto:klarmann@mechanik.tu-darmstadt.de">klarmann@mechanik.tu-darmstadt.de</a><o:p></o:p></span></p></div><p class=MsoNormal><span style='mso-fareast-language:DE'>Franziska-Braun-Straße 7<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:DE'>Gebäude L5|01, Raum 542<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:DE'>64287 Darmstadt<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>