Applies To:
  • CitectSCADA 5.xx, 6.00
  • CitectHMI 5.xx, 6.00

A call to the following function crashes Citect:

Message("Title", "This is a test message", 31)

Why does this happen?


Using an invalid message window mode parameter such as 31 causes the crash. Using any of the following valid windows mode alleviates this problem:

0 - OK button
1 - OK and Cancel button
16 - Stop Icon
32 - Question Icon
48 - Exclamation Icon
64 - Information Icon

To have more than one mode you must use the addition of the mode numbers. For example, set the Mode to 65 to display the OK and Cancel buttons and the Information icon.

Citect has confirmed this to be a problem in CitectHMI/SCADA version 5.XX to 6. We are researching this problem and will post new information here as it becomes available.