delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/12/05:52:05

From: "Warren E. Downs" <warren AT telmarcorp DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Using the DLM utility
Date: Mon, 10 Mar 1997 18:23:48 -0800
Organization: Birch Creek Co.
Message-ID: <3324C233.3B08@telmarcorp.com>
References: <3322D9A0 DOT 24A6 AT ionet DOT net>
Reply-To: warren AT telmarcorp DOT com
NNTP-Posting-Host: 208.8.133.111
Mime-Version: 1.0
Lines: 52
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019