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

Home » Public Forums » archive » 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
Finding Memory Leak ? [message #21783] Thu, 21 September 2000 00:00 Go to previous message
Richard Tyc is currently offline  Richard Tyc
Messages: 69
Registered: June 1999
Member
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
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Interesting IDLgrContour Bug
Next Topic: Re: file output

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

Current Time: Sat Oct 11 16:03:44 PDT 2025

Total time taken to generate the page: 0.24069 seconds