- 论坛徽章:
- 0
|
检索sybase数据库时候出现报错:ct_send():
Possible Cause
This error can occur when an application:
Initiates a new command on a new command structure before all of the results from a previous command have been processed.
Attempts to close a connection where results are pending.
Action
To resolve the problem, take one of following actions, as appropriate:
Check your code to verify that you are not issuing a new command on a new command structure until all results from a previous command structure have been completely processed.
Check your results processing loop. It must process all results returned until ct_results returns a value of CS_SUCCEED.
For more information on result processing, see the section on ct_results in the Client-Library/C Reference Manual.
If the error is raised on a ct_close statement, and you want the connection closed when a certain condition has been met, whether or not all results have been processed, make the ct_close call using the CS_FORCE_CLOSE option. This closes the connection regardless of pending results. When you do this, however, the client does not notify the server of the disconnect. |
|