Applies To:
  • CitectSCADA 3.21 4.00

Under certain conditions the SleeMS() cicode function may cause Citect to generate a GPF. The address of the GPF in version 3.21 is 0009:A6EB. 

CIT has confirmed this to be a problem in Citect for Windows versions 3.21 and 4.00. This problem has been fixed in version 4.10 and 3.30.

This problem will only occur when you have two or more cicode tasks calling SleepMS() and the second call to SleepMS() is a shorter time period than the first. Also the second call to SleepMS() must be from a keyboard command, page entry command or a TaskNew from a keyboard or page entry command. Also the cicode task must not be reading any data from a DISK or physical PLC.

You may work around this problem by using Sleep() or making all your calls to SleepMS() have the same time, or make the cicode task read a single variable from a DISK PLC.