@WINDOW variable corruption. (OpenInsight 32-bit Specific)
At 21 AUG 2003 01:40:46PM Richard Hunt wrote:
The short explaination…
My promoted "ACTIVATED" event receives the @WINDOW variable as "0":@FM:'5000'. the actual form name is "ENTER_FB". This seems to happen consistantly when the same one form is opened, closed, then opened again for the second time. The promoted "CREATE" event (that fires before any "ACTIVATED" events) shows the @WINDOW variable accurately as "ENTER_FB".
Now the long explaination…
1) I start a window, LOGIN_USER, for the user to login.
2) The LOGIN_USER window starts an OI_TASKBAR window and then closes. The user can now start windows from within the OI_TASKBAR window.
3) User starts a window (any window).
4) User starts another window (any window).
5) User closes both windows.
6) User starts the same two windows again.
7) Once the promoted "ACTIVATED" event fires for any one of the two windows, the @WINDOW variable has a value of "0":@FM:"5000".
The promoted "ACTIVATED" event is getting fired by the following proceedure. The user clicks on a taskbar button that now receives an "ACTIVATED" event. Within that event, the button has a sentence of…
RESULT=SET_PROPERTY('SYSTEM','FOCUS',WINDOW_ID)
WINDOW_ID being the window (like ENTER_FB) that now gets activated and that is where the @WINDOW variable is corrupted.
I am so very stumped. The corrupted @WINDOW value is always the same ("0":@FM:"5000").