Applies To:
  • CitectSCADA 3.40, 4.20, 4.20 Service Pack B, 5.00

I am using Cicode DLL functions with a Borland Delphi DLL. If I go to an SPC page after using the DLL Citect sometimes crashes. The same thing does not happen if I write the DLL in Visual Basic or C. Is it a problem with Delphi or is there something wrong with Citect. 

The problem here is that Delphi appears to leave the floating point processor unit in a bad state. So when Citect attempts some floating point operations it may crash. We have coded a work-around in Citect which resets the floating point unit after calling the DLL so that this will not cause a problem. With this fix Delphi DLLs can be successfully used with Citect. This fix is available in Citect for Windows Versions 5.00 Service Pack E and 5.01.