<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Yes this is exactly the line of code that fails, I put printf();getchar(); items before and after (sorry I do not use a debugger).<br>Ok I may send the code but I doubt it could help because, this line is clear and I checked the argument (=100), so what?<br><br><hr id="stopSpelling">Date: Thu, 17 Sep 2009 16:34:29 +0100<br>Subject: Re: [Paraview] PV and the STL: memory allocation issue<br>From: paul.m.edwards@gmail.com<br>To: stan1313@hotmail.fr<br>CC: berk.geveci@kitware.com; paraview@paraview.org<br><br>Are you running this through a debugger?&nbsp; And, is that the line that it is failing on?&nbsp; Finally, can you post the PV code that is failing?<br><br>Regards,<br>Paul<br><br><br><div class="EC_gmail_quote">2009/9/17 Fred Fred <span dir="ltr">&lt;<a href="mailto:stan1313@hotmail.fr">stan1313@hotmail.fr</a>&gt;</span><br>
<blockquote class="EC_gmail_quote" style="padding-left: 1ex;">



<div>
Hmmm, doubtful since in my test this-&gt;grid_xsize == this-&gt;grid_ysize == 10 !!<br><br>&gt; Date: Thu, 17 Sep 2009 08:11:43 -0400<br>&gt; Subject: Re: [Paraview] PV and the STL: memory allocation issue<br>&gt; From: <a href="mailto:berk.geveci@kitware.com">berk.geveci@kitware.com</a><br>
&gt; To: <a href="mailto:stan1313@hotmail.fr">stan1313@hotmail.fr</a><br>&gt; CC: <a href="mailto:paraview@paraview.org">paraview@paraview.org</a><div><div></div><div class="h5"><br>&gt; <br>
&gt; In all likelihood, the allocation is failing because the process is<br>&gt; unable to allocate the memory you ask it to. I am not surprised that<br>&gt; this  happens in ParaView not in VTK because ParaView tends to<br>
&gt; allocate a fair number of small objects probably segmenting the memory<br>&gt; somewhat. Did you try a 64 bit ParaView?<br>&gt; <br>&gt; On Wed, Sep 16, 2009 at 11:16 AM, Fred Fred &lt;<a href="mailto:stan1313@hotmail.fr">stan1313@hotmail.fr</a>&gt; wrote:<br>
&gt; &gt; I use the STL through vtkstd:<br>&gt; &gt;<br>&gt; &gt; &nbsp; vtkstd::vector&lt;vtkstd::vector&lt;vtkstd::vector&lt;double&gt; &gt; &gt; grid;<br>&gt; &gt; &nbsp; [...]<br>&gt; &gt; &nbsp; this-&gt;grid.clear();<br>&gt; &gt; &nbsp; this-&gt;grid = vtkstd::vector&lt;vtkstd::vector&lt;vtkstd::vector&lt;double&gt; &gt;<br>
&gt; &gt;&gt;(this-&gt;grid_xsize*this-&gt;grid_ysize);<br>&gt; &gt;<br>&gt; &gt; It works well on VTK but on PV I can this error at run time:<br>&gt; &gt;<br>&gt; &gt; &nbsp; terminate called after throwing an instance of 'std::bad_alloc'<br>
&gt; &gt; &nbsp; what():&nbsp; St9bad_alloc<br>&gt; &gt;<br>&gt; &gt; If I change the initialization line by:<br>&gt; &gt;<br>&gt; &gt; &nbsp; this-&gt;grid.resize(this-&gt;grid_xsize*this-&gt;grid_ysize);<br>&gt; &gt;<br>&gt; &gt; I get another message:<br>
&gt; &gt;<br>&gt; &gt; &nbsp; terminate called after throwing an instance of 'std::length_error'<br>&gt; &gt; &nbsp; what():&nbsp; vector::_M_fill_insert<br>&gt; &gt;<br>&gt; &gt; which means that the memory allocation by the vtkstl library crashes.<br>
&gt; &gt; Does anybody know about this issue?<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; ________________________________<br>&gt; &gt; Un avatar à votre image ? Créez votre mini-moi !<br>&gt; &gt; _______________________________________________<br>
&gt; &gt; Powered by <a href="http://www.kitware.com">www.kitware.com</a><br>&gt; &gt;<br>&gt; &gt; Visit other Kitware open-source projects at<br>&gt; &gt; <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>
&gt; &gt;<br>&gt; &gt; Please keep messages on-topic and check the ParaView Wiki at:<br>&gt; &gt; <a href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a><br>&gt; &gt;<br>&gt; &gt; Follow this link to subscribe/unsubscribe:<br>
&gt; &gt; <a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><br>&gt; &gt;<br>&gt; &gt;<br><br><hr></div></div>Vous cherchez l'intégrale des clips de Michael Jackson ? <a href="http://www.bing.com/videos/search?q=Michael+Jackson&amp;FORM=MVDE6">Bing ! Trouvez !</a></div>

<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br><br /><hr />Achetez un nouveau PC et bénéficiez de Windows 7 dès sa sortie ! <a href='http://www.portable-windows.com/' target='_new'>En savoir plus</a></body>
</html>