How to create threads in window

BlitzMax Forums/BlitzMax Programming/How to create threads in window

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Although this might appear to work. I dont think the Garbage Collector in MAX is thread safe. All my testing prior to 1.12 indicates no way to write any useful threading in BMAX. Now maybe Mark can clarify if the memory managment changes have introduced thread safe functionality. I dont see it in the source but thats not to say the compiler isnt emitting it Mutexes to make it work.

As for why this works: The method setGadetText ultimatly fails down to a windows API SendMessage to the control. And just to note the Windows GUI api is thread safe. StdIO is also thread safe which is why the print works.

Still on the fence on BMAXs ability to write threaded code... Maybe Mark can answer about the BMAX memory manager.

Doug Stastny