[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Finding Memory Leak ?
- Subject: Re: Finding Memory Leak ?
- From: ronn kling <ronn(at)rlkling.com>
- Date: Fri, 22 Sep 2000 00:17:44 GMT
- Newsgroups: comp.lang.idl-pvwave
- Organization: EarthLink Inc. -- http://www.EarthLink.net
- References: <8qduob$eh6$1@canopus.cc.umanitoba.ca>
- User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.02.2022
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:21488
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/