| 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
|