BUG: NetBios NCBCANCEL over TCP/IP Does Not Block Under Win95
Article ID: 195195
Article Last Modified on 7/11/2005
APPLIES TO
- Microsoft Platform Software Development Kit-January 2000 Edition, when used with:
This article was previously published under Q195195
SYMPTOMS
When you use blocking Netbios calls over TCP/IP, it is possible that
calling NCBCANCEL on a blocked Netbios call (such as NCBSEND or NCBRECV)
will not block on Windows 95 Gold and Service Pack 1. The call to Netbios()
returns immediately with a success. However, this does not guarantee that
the request command has been cleanly cancelled.
This is especially important if the application is in the process of
cleaning up before exiting. If the NCBCANCEL command is issued and the
Netbios name table is immediately cleared either through NCBDELNAME or
NCBRESET commands, the results are unpredictable and could crash the
application.
RESOLUTION
To prevent any instability, ensure that the command to be cancelled returns
from its Netbios() call with the error NRC_CMDCAN before manipulating the
Netbios name table.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article.
Keywords: kbbug kbapi kbnetbios kbnetwork kbpending KB195195