[Dcmlib] FileHelper

Aris Basic aris.basic at silencesoftware.com
Sun Jul 31 14:15:53 CEST 2005


Jean-Pierre ROUX wrote:
> At 10:11 -0400 30/07/05, Aris Basic wrote:
> 
>> is it possible to tell file helper to free memory allocated for pixel 
>> data ?
> 
> 
> Right now, there is no way to do that.
> We should add a method -probabely using PixelReadConvertor::Squeeze()-
> 
> I think all the gdcm guys are on hollydays (I was just back in Lyon for 
> a few hours, and I cannot make any commit from the Internet Café ...)
> 

Yeah some call to deallocate that data would be very nice

>> (I read pixel data and i put it in a swap file so i dont need 
>> filehelpers pixel data pointer anylonger)
> 
> 
> Do you mean you write the pixels into a file, after reading them?
> Why don't you delete the FileHelper at this moment?
> 

Well i need filehelper to get some additional infomration from it
but it may be solution (was lazy thinking about grabin all neccessery 
info and saving it in vars :)

>>
>> i tryed deleting a pointer got from GetPixelData :) but that leads to 
>> seg fault on destructor.
> 
> 
> The FileHelper is not aware that pixels are already deleted; It tries 
> again to delete them, and you get the seg fault.
> JP
> 
>>
>> Aris
>> _______________________________________________
>> Dcmlib mailing list
>> Dcmlib at creatis.insa-lyon.fr
>> http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib
> 
> 
>  Jean-Pierre ROUX
>  CREATIS - CNRS UMR 5515, INSERM U 630
>  Laboratoire de Radiologie Experimentale
>  Hopital Cardiologique
>  28 Avenue du Doyen LEPINE
>  B.P. Lyon-Montchat
>  69394 Lyon Cedex 03
> 
>  Tel      : (+33) 04 72 35 74 12
>  Fax      : (+33) 04 72 68 49 16
>  URL      : http://www.creatis.univ-lyon1.fr
>  e-mail   : jpr at creatis.univ-lyon1.fr
>                                   




More information about the Dcmlib mailing list