One of my programs has a simple splash screen (just 3 TextGadgets), which is displayed like this:
Code: Select all
; display splash screen
OpenWindow_Window_Splash()
st.l = ElapsedMilliseconds()
Repeat
While WindowEvent():Wend
Until ElapsedMilliseconds() - st = 1500
CloseWindow(#Window_Splash)the splash screen never closes, and the CPU usage goes up close to 100%.
The problem PC is running Windows XP SP2, but I have also seen the same result on Vista.
Can anyone help me understand why this hangs, and maybe suggest a better way to do it?
Thanks for your help,
Eric




