Attempted two active database requests

Item Value
SQLCODE -298
Constant SQLE_DOUBLE_REQUEST
SQLSTATE 42W22
Sybase error code 13663
ODBC 2 State ERROR
ODBC 3 State ERROR

Probable cause 

In Embedded SQL, you attempted to submit a database request while you have another request in process. This often occurs in Windows when processing the WM_PAINT message causes a database request, and you get a second WM_PAINT before the database request has completed.