Mail Archives: djgpp/1997/03/12/05:52:05
Andrew Getskow wrote:
I got the DLM utility that allows dynamic linking of coff
images. If anyone has it and they can help I would be very
thankful.
But anyways, I am trying to make a scripting language that will
allow
further add-ons later. There is the basic script language, and then
if
a symbol is not recognized by the basic, it loops through the list
of
other functions that may be used to read the symbol. What I want is
to
load a list of dlms into memory, each one having a function with the
same name, say 'check_symbol', and then, once check_symbol in the
first
dlm returns zero, the next dlm is loaded and the next check_symbol
is
called, until all have been called and returned zero or until one is
successful. This loop works one time, but once the first dlm is
loaded
again, the check_symbol of the last dlm is called still. Is there
a
way to completely Unload a dlm or a way to use function selection?
Thanks for reading. I am sure the above is pretty confusing.
I have used DLM and understand what you are trying to do. There is a
bug in
the DLM manager that causes it to not completely unload a DLM (as you
discovered).
Actually, the DLM is unloaded, but the symbol for it isn't removed from
the symbol
table, if I remember correctly. So you are calling memory that has
already been
freed, in that case. Anyway, I fixed the bug for myself, but it's been
a while since
I've looked at it. You might try emailing Ilya, the author. He seemed
pretty responsive
to bug reports back when he was developing it.
Warren
--
Warren E. Downs - Network Administrator, Birch Creek Company
Verity R. Downs - Psychology Undergrad, Walla Walla College
mailto:warren AT telmarcorp DOT com mailto:verity AT telmarcorp DOT com
http://www.telmarcorp.com/users/warren
- Raw text -