Applies To:
  • CitectSCADA 3.xx, 4.xx, 5.xx

I used the Function WinFree() in an 'On Page Exit' event on a page.  At runtime when I exit the Page I get an 'Out of Threads' error box come up, but I do not have a lot of cicode running. 

When you Exit the page and call the WinFree() function, Citect seems to re assert the function and Winfree() is called repeatedly until you run out of Cicode threads.  This configuration should be avoided.