For Programmers: Free Programming Magazines  


Home > Archive > VC Language > November 2005 > LoadLibrary("rsaenh.dll") succeeds in Debugger, fails otherwise (Win









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author LoadLibrary("rsaenh.dll") succeeds in Debugger, fails otherwise (Win
Stephan Keil

2005-11-23, 7:04 pm

I call LoadLibrary("rsaenh.dll") from a huge MFC MDI application (which is
done implicitly by CryptAcquireContext(), my actual target API call :)).
On Windows 2003 Server it fails, GetLastError() yields
0x000003E6 == 998 == ERROR_NOACCESS ("Invalid access to memory location")
which probably means an access violation during dll startup.
But if I connect a remote debugger (msvcmon -anyuser -tcpip) just before the
LoadLibrary() call, it succeeds.
Also on WinXP and Win2000 Server the call succeeds (even without debugger).

Calling LoadLibraryEx() with DONT_RESOLVE_DLL_REFERENCES succeeds also
on Win2003 Server, but a subsequent CryptAcquireContext() fails, supposedly
because the library is not fully loaded.

I obtained a hot fix from Microsoft support which seems to fit my problem
(see http://support.microsoft.com/defaul...d=rss&spid=3198),
but unfortunately it didn't help.

Anybody knows what's going on here?

Thx & regards, Stephan
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com