PRB: NetBIOS Command NCBSEND Gets Return Code Error 0x3C (123457)



The information in this article applies to:

  • Microsoft Platform Software Development Kit (SDK) 1.0
  • Microsoft Win32 Software Development Kit (SDK) for Windows NT 3.5

This article was previously published under Q123457

SYMPTOMS

While opening sessions, you start to get error 0x3C (lock of user area failed) in the NcbSend command call.

CAUSE

An application in Windows NT uses the NcbListen command to accept NetBIOS calls. After a call is received, the application uses the NcbSend command to send data back.

If the computer running Windows NT has 32 megabytes of main memory, an application can request a large number (for example, 128) of sessions, by using the NcbReset command, without difficulty.

However, with only 16 megabytes of main memory, an application can request only a moderate number (for example, 80) of sessions. If more sessions are opened they start to get error 0x3C (lock of user area failed) in the NcbSend command call. The error persists until some of the sessions that are currently open are closed, at which time NcbSend will get a good return status.

STATUS

This behavior is by design. The system stops the process from using so many resources that it jeopardizes the performance of other applications and/or the system itself.

Modification Type:MinorLast Reviewed:7/11/2005
Keywords:kbAPI kbNetBIOS kbnetwork KB123457