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

Home » Public Forums » archive » Memory Leaks
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: Memory Leaks [message #16912 is a reply to message #16838] Tue, 24 August 1999 00:00 Go to previous messageGo to previous message
kluegel is currently offline  kluegel
Messages: 11
Registered: February 1999
Junior Member
In article <37C22D54.12C9EDC1@ihug.com.au>,
David <pharoh@ihug.com.au> wrote:
> In unix you are able to use bcheck to check for memory leaks. I was
> wondering is there a program that has similar abilities as bcheck but
> for windows, that can check for memory leaks in IDL.

Its important to realize that the type of memory leaks that can happen
in IDL (barring internal IDL bugs), are chunks of IDL heap memory that
are lost to an IDL program, but they are not actually lost to the IDL
interpreter. Its the IDL interpreter that manages the IDL heap, and
gives pieces or takes back pieces upon request by the IDL program. The
pointer you receive from PTR_NEW, or give via PTR_FREE is really just a
logical reference to a piece of the IDL heap, not a direct pointer into
the computer's memory. Only the IDL interpreter understands it. An MS
Windows-level utility doesn't have any way of knowing about those kind
of memory leaks. Only an IDL-level utility can accomplish the needed
functionality. If there's a utility to help you in this manner, its
either written in IDL or is a provided functionality as a part of IDL.
So it would most likely be available on all IDL platforms.

The closest thing I know is:
IDL> HEAP_GC, /VERBOSE

It might be good enough for your purposes, but it insists on actually
deallocating the leaked heap memory, not just telling you about them.

Hope this helps.
-- Tom


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: NT IDL Crashes
Next Topic: VIP

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

Current Time: Sun Oct 12 06:27:54 PDT 2025

Total time taken to generate the page: 0.48060 seconds