Re: Process not always exiting



Look for code executed from DllMain() that could use some other .dll --
except kernel32.dll.

Code executed from DllMain() that uses code from any .dll except
kernel32.dll can cause a hang on unload.



"Mark Hampton" <mhampton.removeme@xxxxxxxxxxxxxxxxxxx> wrote in message
news:ubseUiBAGHA.216@xxxxxxxxxxxxxxxxxxxxxxx
> Not sure if this is the appropriate forum, but it seems like it is.
>
> We have an application that does not always exit when the user closes it
> (all windows are closed, but it hasn't unloaded DLLs yet). Since this is a
> 4GL application (PowerBuilder), we have no control really over the way the
> program exits; Additionally, we use various external DLL's for various
other
> work (sockets, some DLLs written by other companies, etc).
>
> So, the question is, what can prevent an application from exiting in the
> Win32 world? Threads waiting on sockets? Threads waiting on a mutex?
>
> Any kind of pointers would be useful; If needed, I can provide a list of
> open objects dumped from Process Explorer.
>
> Additionally, if anyone thinks I should open a support case, I'm willing
to
> try that, just give me pointers on how I should word the request so that
it
> gets to the proper group.
>
> Thanks.
>
>


.



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: 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: REXX problem
    ... Paul Ratcliffe wrote: ... 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. ... 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. ...
    (comp.os.os2.apps)
  • RE: Unload button not working on WinXP
    ... does all of iis hang? ... the issue causing the lock in the dll? ... Unload button not working on WinXP ... Our ASP calls into DLLs which then get locked by IIS, ...
    (microsoft.public.inetserver.iis)