IDL_MakeStruct: memory leak? (C / DLM question) [message #34122] |
Wed, 26 February 2003 13:23 |
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
|
|
|