MachineCode wrote:I can't "upgrade" to 5.10 now unless I wrap all my OpenWindow and WindowEvent commands with DisableDebugger (which Fred even said is NOT recommended to do!).
Yes, he said something like that. But shortly after:
Fred wrote:We re-enabled the previous behaviour on Windows regarding event queue (as it should not impact new code), so with DisableDebugger around the offending calls, all should be working like pre v5.10 versions.
I think the best way of handling this (if it will not be changed from an error to a simple warning message - as requested by many

) is:
Code: Select all
Procedure _OpenWindow(Window, x, y, InnerWidth, InnerHeight, Title$, Flags=0, ParentID=0)
Protected Result = 0
DisableDebugger
Result = OpenWindow(Window, x, y, InnerWidth, InnerHeight, Title$, Flags, ParentID)
EnableDebugger ; Will have no effect if debugger is disabled in compiler settings
ProcedureReturn Result
EndProcedure
Procedure _WaitWindowEvent(Timeout=#PB_Default)
Protected Result = 0
DisableDebugger
Result = WaitWindowEvent(Timeout)
EnableDebugger
ProcedureReturn Result
EndProcedure
Procedure _WindowEvent()
Protected Result = 0
DisableDebugger
Result = WindowEvent()
EnableDebugger
ProcedureReturn Result
EndProcedure