That’s exactly right. Glad you found the problem.
Christophe Guerber <firstname.lastname@example.org> wrote:
I think I’ve found what’s wrong: When I set the resource, it frees the old
image buffer. I keep a pointer to this PtImage and when I set the resource
for the second time the image buffer has been freed… And it cores!
Gui Group <> email@example.com> > a écrit dans le message :
9ts3ri$okr$> firstname.lastname@example.org> …
Are you freeing the image data after copying it to the image? You can
the PhImage_t structure but you can’t free the data of the image. Also
if you are loading these images from a data base, you can’t close the
data base until you are done with the images. If you are not doing either
of these things could you please post the code that you are using to set
Christophe Guerber <> email@example.com> > wrote:
I’m trying to swap between 3 images through a radio button selector. To
perform this without copying all the image, I set the image argument of
PtLabel widget. After some swaps, application cores. Why? Is there any
trouble in changing the image more than once?
I’m using QNX 6 with PhAB.