Re: memory leakage [message #30931 is a reply to message #30496] |
Sun, 26 May 2002 17:53  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Lyubo (lzagorch@cs.wright.edu) writes:
> I have an object which has an update method. It changes the texture
> of a 3D plane. Every time after I call the following update method:
> ;----------------------------------------------------------- ------
> PRO myobj::update, image, value
>
> temp = SIZE(image)
> width = temp[1]
> height = temp[2]
>
> ; update image object used as texture
> self.oImage->SetProperty, DATA=image
>
> END
> ;----------------------------------------------------------- -------
>
> there is memory leakage. I tried using:
> self.oImage->SetProperty, DATA=image, NO_COPY=1
> but it didn't help.
>
> I am sure that "self.oImage->SetProperty, DATA=image" is
> causing the problem because when I comment it there isn't any
> memory leakage.
>
> Do you know exactly what is going on and how can I fix it?
I've confirmed that changing the image data in IDL 5.4
and IDL 5.5 in Windows, at least, using the above commands
does NOT cause memory leakage. I don't know what could be
going on here.
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|