[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Finding Memory Leak ?
- Subject: Finding Memory Leak ?
- From: "Richard Tyc" <Richard_Tyc(at)sbrc.umanitoba.ca>
- Date: Thu, 21 Sep 2000 16:32:23 -0500
- Newsgroups: comp.lang.idl-pvwave
- Organization: The University of Manitoba
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:21485
I am starting to lose hair over this one. I recently noticed that when I
close my program, two pointer variables remain which I am reluctant to
remove using PTR_FREE, PTR_VALID()
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.
Anyone care to give any advice how I can find the source of the bug ? I
have been trying to print out all the valid pointers (ie. print,
PTR_VALID() ) between Function/Procedure calls to determine when the 2
pointers come alive but this is very tedious (and so far unsuccessful) !!
Thanks
--
Richard Tyc
Project Engineer
St. Boniface Hospital Research Center
351 Tache Ave
Winnipeg, MB
Canada
Tel: 204-237-2557
Fax: 204-231-0485
Email: richt@sbrc.umanitoba.ca