Multiple instances of DLL in memory.
From: Ihor Bobak (ibobak_at_ukrpost.net)
Date: 11/28/03
- Next message: Ray Marron: "Re: Check Different between 2 Files"
- Previous message: Kurt Barthelmess: "Re: File Sharing Problem"
- Next in thread: Peter Below (TeamB): "Re: Multiple instances of DLL in memory."
- Reply: Peter Below (TeamB): "Re: Multiple instances of DLL in memory."
- Reply: Martin James: "Re: Multiple instances of DLL in memory."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 28 Nov 2003 07:53:55 -0700
I created a dll which sets a global WH_SHELL hook,
and .exe which uses this dll.
This dll sends messages to a window in my .exe when
the global hook procedure is called by some process.
The problem is next: this dll is loaded for each process
separately. Process Viewer shows 10 or more copies of my
dll in memory (used by each process which called my
hook procedure).
I cannot understand why my dll is not loaded just once?
I saw many examples (written on C++) which set the
same hook in the same way, but their dll is loaded
only once and used by many processes simultaneously.
Can anybody tell me, how to make the dll really shared ?
Thanks in advance.
- Next message: Ray Marron: "Re: Check Different between 2 Files"
- Previous message: Kurt Barthelmess: "Re: File Sharing Problem"
- Next in thread: Peter Below (TeamB): "Re: Multiple instances of DLL in memory."
- Reply: Peter Below (TeamB): "Re: Multiple instances of DLL in memory."
- Reply: Martin James: "Re: Multiple instances of DLL in memory."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|