[GEM-dev] pix buffer improvements

Georg Holzmann grhPD at gmx.at
Wed Aug 24 19:01:58 CEST 2005


Hallo!

>>> to fix this, you _have_ to do a pd_findbyclass() each and everytime 
>>> you access the data behind it.
>>
>>
>> no, you dont have to :)
> 
> no you have to
but I don't want to ... :)

> while you are copying the struct-data into your local pixBlock, the 
> actual pixel-data is stored in the [pix_buffer] (using 
> copy2imageStruct() instead of copy2Image()) and it is freed when 
> pix_buffer is deleted.
okay, I can see it in GemPixUtils.
Then I will use refreshImage(imageStruct *to) ...

> 
> just open the example patch in examples/2.advanced load the buffer, 
> change the index and delete the [pix_buffer] object.
> 
> i always tried with "auto 1"
doesn't crash here ... but it's only luck it seems ...

LG
Georg




More information about the GEM-dev mailing list