Please allow OpenWindow inside threads

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Fred
Administrator
Administrator
Posts: 18153
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Please allow OpenWindow inside threads

Post by Fred »

No crash here with ThreadSafe switch on.
auser
Enthusiast
Enthusiast
Posts: 195
Joined: Wed Sep 06, 2006 6:59 am

Re: Please allow OpenWindow inside threads

Post by auser »

Fred wrote:No crash here with ThreadSafe switch on.
You are right. Sorry. :oops:
User avatar
doctorized
Addict
Addict
Posts: 882
Joined: Fri Mar 27, 2009 9:41 am
Location: Athens, Greece

Re: Please allow OpenWindow inside threads

Post by doctorized »

Threadsafe is on to me but my app still crashes when I try to open a window inside a thread. :(
Tranquil
Addict
Addict
Posts: 952
Joined: Mon Apr 28, 2003 2:22 pm
Location: Europe

Re: Please allow OpenWindow inside threads

Post by Tranquil »

Sorry for asking this (maybe) stupid question, but I can not find something in the change logs since 5.10.
It it now save, if I'm windows only, to create windows within threads and disable the debugger for that case?
Fred wrote: [...], so with DisableDebugger around the offending calls, all should be working like pre v5.10 versions.
Tranquil
Fred
Administrator
Administrator
Posts: 18153
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Please allow OpenWindow inside threads

Post by Fred »

No, you shouldn't assume that. It could work, but it could be broken at any time.
Post Reply