comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Finding Memory Leak ?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Finding Memory Leak ? [message #21778 is a reply to message #21776] Thu, 21 September 2000 17:17 Go to previous messageGo to previous message
ronn is currently offline  ronn
Messages: 123
Registered: April 1999
Senior Member
in article 8qduob$eh6$1@canopus.cc.umanitoba.ca, Richard Tyc at
Richard_Tyc@sbrc.umanitoba.ca wrote on 9/21/00 2:32 PM:

> I have checked every line of code where I create a new variable using
> PTR_NEW and I always properly used PTR_Free on it. I also use the DICOM
> method GetValue alot (which returns a pointer to the data) but always use
> /NO_COPY so the pointers point to actual data within the object which should
> get properly removed when the object is destroyed.
Richard,

Two things cross my mind right away.
1. Are you creating a subclass of the DICOM object? If so, you have to call
the cleanup method directly from the child object. If you don't then any
pointers created by the parent will not be freed.
2. Are you creating the DICOM object more than once so that when you destroy
it only the last one is destroyed?

-Ronn

--
Ronn Kling
Ronn Kling Consulting
email: ronn@rlkling.com
"Application Development with IDL"� programming book updated for IDL5.3!
Shareware and Freeware at: http://www.rlkling.com/
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Problem using sav files.
Next Topic: Re: Interesting IDLgrContour Bug

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 15:32:57 PDT 2025

Total time taken to generate the page: 0.31955 seconds