BUG: Dbprocerrhandle or Dbprocmsghandle Unexpectedly Returns NUL

ID: Q171367

The information in this article applies to:

BUG #: 16733 (Windows: 6.5)

SYMPTOMS

An attempt to install a per process error or message handler may unexpectedly return NULL if you use a LOGINREC to install the handler.

WORKAROUND

To work around this problem, check the calls to dbprocerrhandle and dbprocerrhandle. If it returns NULL and does not meet the criteria described in the MORE INFORMATION section of this article, call dbfreelogin and reconstruct the LOGINREC.

MORE INFORMATION

The functions can correctly return NULL in the following situations:

STATUS

Microsoft has confirmed this to be a problem in Microsoft SQL Server version 6.5. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

Additional query words: Invalid Login Function

Keywords          : kbprg SSrvProg kbbug6.50 
Version           : 6.5
Platform          : WINDOWS
Issue type        : kbbug

Last Reviewed: July 18, 1997