Applies To: |
|
Summary: |
When I create a form in Citect and enter my
data, Citect crashes when I press the OK button. My code looks like
this.
INT hForm;
END |
Solution: |
The problem is that the form system is
trying to write back the information to the buffer for the edit
field. The variable being used is a local variable and has gone out
of scope as FormRead(1) was called which does not block the
Cicode. In versions prior to 5.2 there is no way to protect
against this potential problem and can be caused by any form item
that writes back to a buffer.
The solution is to make sBuffer a global variable, or to restructure the code so that FormRead(0) used in place of FormRead(1). CIT has confirmed this to be a problem in Citect for Windows version 2.xx to 5.10. This problem has been fixed in version 5.20. |
Keywords: |
Related Links
Attachments