This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: dlclose not calling destructors of static variables.
On 01/02/2010 17:35, Andrew West wrote:
> Cribbing from the gdb source code, it looks like they use BaseAddrees +
> 0x1000 for the start point and then call GetModuleInformation to workout
> the size of the module. I'm currently trying this out in dll_init.cc but
> for some reason GetCurrentProcess is returning -1 for me :(
-1 is a magic HANDLE constant meaning "current process", that's OK!
http://msdn.microsoft.com/en-us/library/ms683179(VS.85).aspx
cheers,
DaveK
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple