Applies To:
  • CitectSCADA 5.xx

Summary:
If the substring requested will result in a string that is greater than 255 characters then Citect may crash or return a StrReg corruption error on shutdown. The following code illustrates the problem.

Example
------------

FUNCTION MidStrCorruption()
    STRING sVar = "";
    sVar= StrMid("ABCDEFG",1,300);
    Prompt(sVar);
END

This example will try and return a string of 300 characters, however currently in Citect there is a restriction on the size of a Cicode string of 255 characters.

 

Solution:
CIT has confirmed this to be a problem in Citect for Windows versions 5.xx. This problem has been fixed in version 5.41.

Keywords:
 

Attachments