[vtkusers] memory management

David E DeMarle dave.demarle at kitware.com
Tue Sep 21 17:23:46 EDT 2010


For posterity, the problem turned out to be a New() without
corresponding Delete() in the outer loop. The CosmoReader appears to
work fine in other words.

David E DeMarle
Kitware, Inc.
R&D Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x109



On Wed, Sep 15, 2010 at 9:08 PM, David E DeMarle
<dave.demarle at kitware.com> wrote:
> Can you post the code that iterates? If large send it off list. I can
> help diagnose and fix.
>
> David E DeMarle
> Kitware, Inc.
> R&D Engineer
> 28 Corporate Drive
> Clifton Park, NY 12065-8662
> Phone: 518-371-3971 x109
>
>
>
> On Wed, Sep 15, 2010 at 4:31 PM, Ula Popov <ula.popov at gmail.com> wrote:
>> Hi all,
>>
>> I'm using vtkCosmoReader to read files.
>> The files are really big, each file is 4GB.
>> I read files in a loop, each iteration I'm using (reading) only 2 files.
>> After 2 iterations I get a message, that my computer can not allocate more
>> memory.
>>
>> I suspect that the reader doesn't closes the files. Is there any way to
>> check/force
>> file/memory management/garbage collection?
>>
>> Thank you for any ideas,
>> Ula
>>
>> P.S. I checked all other components, they should not cause the problem
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>
>



More information about the vtkusers mailing list