FIX: gethostbyaddr() May Cause an Invalid Page Fault on Win95 |
Q176354
You might receive the following error message when you call gethostbyaddr() on Windows 95:
When you click Details, the following details are displayed:This program has performed an illegal operation and will be shutdown.
<your app> caused an invalid page fault in module Kernel32.dll.
-or-
<your app> caused an access violation fault in Kernel32.dll.
The gethostbyaddr API issues a NETBIOS Node Status Query if the address is not found in the local hosts file or a domain name server(DNS). However, due to this bug, if the target machine of this Node Status Query registers more than 10 netbios names, an Invalid Page Fault occurs in Kernel32.dll. If the target machine is many hops away, or network is slow, an Access Violation may occur in Kernel32.dll. This only happens under Windows 95.
This bug has been fixed in Winsock 2 for Windows 95. To work around this problem without applying the fix, manually add a PTR record to the DNS server for the target machine, or reduce the number of netbios names by stopping services whose names are registered.
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug has been corrected in Winsock 2 for Windows 95 SDK. It can be downloaded from ftp://ftp.microsoft.com/bussys/WinSock/winsock2.
Additional query words: winsock winsock2 dns netbios wins domain group
Keywords : kbnetwork kbAPI kbSDKPlatform kbOSWin95 kbWinsock kbGrpDSNet
Issue type : kbbug
Technology :
|
Last Reviewed: December 15, 2000 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |