Re: REXX problem



Paul Ratcliffe wrote:
On Mon, 17 Apr 2006 19:43:47 -0700, Marty <net.comcast@martyamodeo> wrote:

You can try that by yourself. Write 2 procedures loading sysloadfuncs,
let one use one of them in a loop and the other unload it - try to find a situation where the other can use the function after SysDropFuncs has run by the other.

Yup. I know. I've been bitten by it first-hand and lost many hours and hairs trying to figure it out. I was just commenting on how puzzling it is that they implemented things this way, given that DLLs operate in a much more robust way. It almost seems like they would have had to go out of there way to make it work the way it does today.

It's nothing to do with how DLLs work. It's to do with matching procedure
names to DLL names and entrypoints - a name registration issue if you like.
They should have put a usage count on registrations and deregistrations,
but they didn't for whatever reason. It would have made the code marginally
more difficult to write, but would have saved all the confusion...

That makes more sense now, thanks. It probably does use the normal referencing technique to actually load and unload the DLLs, but registering the procedure names in the language is the all or nothing approach.

--
[Reverse the parts of the e-mail address to reply.]
.



Relevant Pages

  • Re: How are proxy-stub dlls freed?
    ... DLLs are not different from any other COM in-proc servers. ... When running an app from the PB IDE, it runs in the same process as the ... not unload them when it is unloaded, and since the process is still ...
    (microsoft.public.vc.atl)
  • Re: overlaying - how to deal with a big application?
    ... > If I could write dlls with VB6 I could do the jobs into dlls and load and ... > unload them manually, but this doesn't work with VB. ... > if the ressources would be freed also - is it true, ... has to take care about the use of system resources no matter how many ...
    (microsoft.public.vb.winapi)
  • Re: REXX problem
    ... let one use one of them in a loop and the other unload it - try to ... It's nothing to do with how DLLs work. ...
    (comp.os.os2.apps)
  • RE: LoadLibrary sometimes fails with error 14.
    ... fact that CF does not unload P/Invoke'd dlls once they are loaded, ... it might be possible to unload unneeded modules by ... P/Invoking to GetModuleHandle and FreeLibrary, ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Process not always exiting
    ... kernel32.dll can cause a hang on unload. ... but it hasn't unloaded DLLs yet). ... Threads waiting on sockets? ... > Any kind of pointers would be useful; If needed, I can provide a list of ...
    (microsoft.public.win32.programmer.kernel)

Loading