labelled common (OpenInsight 32-bit)
At 07 SEP 2011 03:41:51AM Colin Rule wrote:
I am getting the message, The labelled common variable has been freed and is no longer valid, when closing a window.
A labelled common is in use, but I have not cleared it.
I changed my File,Exit menu to do a Post_event, Close, and this works, but the red X at the top right still causes this message.
What is the cause of this message, and what is the general suggested solution?
Colin
At 09 SEP 2011 04:24PM Paul Marraffa wrote:
I was receiving this error on a deployed system some time ago, only on the launching window.
My solution was a utility destroy system on window close.
At 11 SEP 2011 08:14PM Colin Rule wrote:
Not an option, as this is a screen launched from the main screen.
Anyone with other suggestions.
At 12 SEP 2011 02:17PM Carl Pates wrote:
Hi Colin,
What's on the call stack when the program breaks? The CLOSE event (SYSPROG*CLOSE.WINDOW.OIWIN*) calls End_Window() which is freeing the named common so more than likely you have another event for the window waiting to be executed after that, which is where the break will occur. If you can't determine what is causing the break you could try Yield() call or a Utility( "FLUSH" ) call so see if you can remove/process any waiting events.
Carl