Thread did not ask for message after accept terminated by one error

0 Likes

Executing the ACUCOBOL-GT application gives the error "Thread did not ask for message after accept terminated by one".

Problem:

When running the ACUCOBOL-GT application, after an indeterminate period of time, the Runtime halts with the following error: "Thread did not ask for message after accept terminated by one"

Resolution:

Generally this message is due to a coding error.

When coding "SEND message to all threads" there must be an "ACCEPT... allowing messages..." coded in every thread, along with "if crt-status = 95 then RECEIVE message...". If the RECEIVE is missing, the message queue will become full, because of the SEND to all threads.

That's when this error can be seen.

If this message is seen in a version prior to 7.2.2 and the threads are coded correctly, there is a possibility that the Runtime encountered a problem where under certain rare circumstances it fails to clear an internal flag related to thread messaging. That was corrected in Version 7.2.2. If this is the case, then upgrading should resolve the issue.

Incident Number: none

Date: Name: Description of change: Date: Name: Description of change: 
Old KB# 14126
Comment List
Anonymous
Related Discussions
Recommended