[vtkusers] memory allocation troubles

Ivan Dmitriev dmitriev at isiosf.isi.it
Tue Apr 6 11:13:04 EDT 2004


Hello people,

  I still have troubles with memory allocation using VTK. Well, let me try to explain problem more detailed.

  I am writing program which read DICOM files, process them and visualize result. I tried use the same pipeline in two different kind of project in Windows XP, Console and Windows (with GUI). I have 1 Gb memory. Memory usage after processing but before putting dat in VTK filters is around 700 Mb. When I use console version of the program everything is just fine, even if memory usage around 1.5 Gb. Program does not fall. But, when I tried using QT for GUI, program fall immediately after Update method in first VTK filter in pipeline (memory jump over 1Gb). I tried to versions of QT 2.3 and 3.2.1. Result is the same - program fall. Then I switch to MFC. First tial was with version of MFC which is included in Visual Studio 6.0. And, surprise, everything work fine. Then I tried Visual Studio .Net with its MFC library and I got again the same problem - program fall. 

   If some one who has similar problem, please, help !!! Is there some limits on memory use in VTK, or some problems in VTK - GUI library interactions ? 

   Thanks in advance for any kind of help !
Ivan





More information about the vtkusers mailing list