The information in this article applies to:
SYMPTOMSThe LoadLibrary() API may sometimes encounter an access violation while attempting to map a specified module into the address space of the calling process. In this event, LoadLibrary() returns a value of NULL and GetLastError() returns an error code of 998 (ERROR_NOACCESS). CAUSEThe Windows NT status code STATUS_ACCESS_VIOLATION is mapped to the Win32 error code ERROR_NOACCESS. As a result, if the operating system loader encounters an access violation (exception C0000005) while mapping the specified DLL file image or executing the startup code, the loader will set the last error to 998 (ERROR_NOACCESS) and the LoadLibrary() function will fail with a return value of NULL. MORE INFORMATION
When an access violation occurs anywhere in the startup code, the exception
dispatcher detects whether the process that encountered this exception is
being debugged. If so, this first chance exception is sent to the debugger.
Additional query words: LoadLibrary 998 ERROR_NOACCESS
Keywords : kbDLL kbKernBase kbNTOS400 kbWinOS2000 kbDSupport kbGrpKernBase |
Last Reviewed: January 10, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |