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