Knowledge Base

PRB: Error 1 (NRC_BUFLEN) During NetBIOS Send Call

Article ID: 124879

Article Last Modified on 10/15/1999


APPLIES TO


This article was previously published under Q124879

SYMPTOMS

When making a NetBIOS Send call, the call with fail with error code 1 (NRC_BUFLEN). This error code indicates that the buffer length is invalid.

CAUSE

NRC_BUFLEN will be returned if the buffer length specified in the NetBIOS Control Block (NCB) is incorrect. Less obvious is the fact that this error will also be returned if the buffer pointed to by the NCB is protected from write operations.

RESOLUTION

Although the NetBIOS code does not write to the buffer supplied in the NCB, write access is required. You can solve the problem by changing the protection on your buffer to include write access.

Keywords: kberrmsg kbapi kbnetbios kbnetwork kbprb KB124879