Microsoft KB Archive/175487

= BUG: Unhandled Exception w/Executive If Return Code Not in Range =

Article ID: 175487

Article Last Modified on 10/3/2003

-

APPLIES TO


 * Microsoft SQL Server 6.5 Standard Edition

-



This article was previously published under Q175487



BUG #: 17182 (Windows: 6.5)



SYMPTOMS
An unhandled exception error may occur in SQL Executive if the process exit code from a CmdExec task is not between -9999 and 99999 (that is, if the return code exceeds five positions when expanded with wsprintf). For example, if the return value is 123456, SQL Executive will cause an access violation (AV). The stack is corrupted and the only function on the stack is ntdll!RtlAllocateHeap. You may also encounter the following error when you try to start SQL Executive after receiving the AV:

SQLExecutive - DLL initialization failure Initialization of the dynamic

link library c:\windows\system32\user32.dll failed. The process is

terminating abnormally.



WORKAROUND
To work around this problem, use the return code in the range of -9999 and 99999.



STATUS
Microsoft has confirmed this to be a problem in 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.



MORE INFORMATION
This problem is compounded by the fact that the user interface of SQL Enterprise Manager lets you define a process exit code up to six characters wide (in the range of -99999 and 999999).

Additional query words: number SEM

Keywords: kbbug kbusage KB175487

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.