<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
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: berk.geveci@kitware.com<br>&gt; To: stan1313@hotmail.fr<br>&gt; CC: paraview@paraview.org<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;stan1313@hotmail.fr&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 www.kitware.com<br>&gt; &gt;<br>&gt; &gt; Visit other Kitware open-source projects at<br>&gt; &gt; http://www.kitware.com/opensource/opensource.html<br>&gt; &gt;<br>&gt; &gt; Please keep messages on-topic and check the ParaView Wiki at:<br>&gt; &gt; http://paraview.org/Wiki/ParaView<br>&gt; &gt;<br>&gt; &gt; Follow this link to subscribe/unsubscribe:<br>&gt; &gt; http://www.paraview.org/mailman/listinfo/paraview<br>&gt; &gt;<br>&gt; &gt;<br><br /><hr />Vous cherchez l'intégrale des clips de Michael Jackson ? <a href='http://www.bing.com/videos/search?q=Michael+Jackson&FORM=MVDE6' target='_new'>Bing ! Trouvez !</a></body>
</html>