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