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

Home » Public Forums » archive » IDL_MakeStruct: memory leak? (C / DLM question)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
IDL_MakeStruct: memory leak? (C / DLM question) [message #34122] Wed, 26 February 2003 13:23
sidney is currently offline  sidney
Messages: 1
Registered: February 2003
Junior Member
Hi everybody,

The C function IDL_MakeStruct() is used to create an (opaque)
structure definition for later use with, for example, MakeTempStruct.
Structures themselves are subject to IDL garbage collection; but who
cleans up the structure definition itself?

(*) IDL cannot do this since it doesn't know when the C program is
done with the structdef.

(*) The C program cannot do it, simply because there is no function
provided to release a structure definition.

Now I have made a DLM that uses anonymous structures very, very
extensively. I suspect that the IDL_MakeStruct() is leaking memory
since for each anonymous structure I create, I also create a structure
definition---that will continue to live even when the anonymous
structure itself is long gone, I'm afraid.

Is my understanding of this correct?

Best regards,

Sidney Cadot
Science and Technology Corp., The Netherlands
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: counting bits
Next Topic: Re: delete a dataset in a hdf file

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

Current Time: Wed Oct 08 10:58:06 PDT 2025

Total time taken to generate the page: 0.00519 seconds