Could not allocate resources to call external function

Error constant SQLE_ERROR_CALLING_FUNCTION
ODBC 2 State ERROR
ODBC 3 State ERROR
Severity 19
SQLCODE –622
SQLSTATE WW008
Sybase error code 13679
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.