Hi,
I have a window with several properties that are dictionaries.
In the window constructor I initiate them with
dict1 = new dictionary
dict2 = new dictionary
The window has a method AnalyzeData which fills these dictionaries depending on the data in some TextAreas.
Works fine so far.
Now I wanted a live update, so when I change the text in the TextAreas then the dictionaries and other items get updated.
So in the TextChange event of the TextAreas I call the AnalyzeData method.
Result: NOE because the dictionaries are Nil.
As far as I can see the Textarea opens, which triggers the TextChange event, which calls the method, which causes the exception.
The window constructor is not entered at all (following along in the debugger).
I thought the window constructor would fire first? Isn’t that the whole point of a window constructor?