Could not allocate resources to call external function

Item Value
SQLCODE -622
Constant SQLE_ERROR_CALLING_FUNCTION
SQLSTATE WW008
Sybase error code 13679
ODBC 2 State ERROR
ODBC 3 State ERROR

Probable cause 

The external function could not be called due to a shortage of operating system resources. If the operating system supports threads, the maximum thread count should be increased.