Threads and windows (both MS windows and openwindow actuall)
Posted: Thu Feb 10, 2011 2:31 pm
I have a lot of issues with windows that run their own threads.
I know this isnt the most pretty example of threading... But say I want 10 windows with their unique windowID running on a seperate thread.
In Windows = works
In MacOS = IMA, why? I depend on windowses running their own thread. I have really no alternative.... Any suggestions? Is this a bug?
Jesper
Code: Select all
Procedure open(x)
OpenWindow(x,100,100,500,500,"WINDOW "+Str(x))
Repeat
Until WaitWindowEvent()=#PB_Event_CloseWindow
EndProcedure
For a=1 To 10
CreateThread(@open(),a)
Delay(500) ;Remove this=crash.
Next
Repeat
Delay(100)
ForEver
In Windows = works
In MacOS = IMA, why? I depend on windowses running their own thread. I have really no alternative.... Any suggestions? Is this a bug?
Jesper