After update XCode: "nextEventMatchingMask should only..."

Mac OSX specific forum
Lebostein
Addict
Addict
Posts: 807
Joined: Fri Jun 11, 2004 7:07 am

After update XCode: "nextEventMatchingMask should only..."

Post by Lebostein »

After updating XCode to version 9.2 I get error messages while compiling PureBasic programs:
"nextEventMatchingMask should only be called from the Main Thread!" for example in a line with ResizeGadget()...

What is going on?
User avatar
mk-soft
Always Here
Always Here
Posts: 5335
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: After update XCode: "nextEventMatchingMask should only..

Post by mk-soft »

I thing you must update your PB-Version
Please specify the MacOS and PB version

Link: viewtopic.php?f=28&t=66778&hilit=nextEventMatchingMask

Link 2: viewtopic.php?f=12&t=47588&hilit=nextEv ... 05#p496485
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Lebostein
Addict
Addict
Posts: 807
Joined: Fri Jun 11, 2004 7:07 am

Re: After update XCode: "nextEventMatchingMask should only..

Post by Lebostein »

I use the current version.

PureBasic 5.70 LTS (MacOS X - x64)
macOS Sierra 10.12.6
XCode 9.2

(XCode 9.3 requires macOS 10.13.x)
User avatar
mk-soft
Always Here
Always Here
Posts: 5335
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: After update XCode: "nextEventMatchingMask should only..

Post by mk-soft »

All codes the same fault?

Have you an example code.

I am working with Mojave and my virtual machine with High Sierra is at time not ready.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Fred
Administrator
Administrator
Posts: 16619
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: After update XCode: "nextEventMatchingMask should only..

Post by Fred »

If you can post a small code demonstrating the issue, it could help. Do you use WaitWindowEvent() in a thread ?
Lebostein
Addict
Addict
Posts: 807
Joined: Fri Jun 11, 2004 7:07 am

Re: After update XCode: "nextEventMatchingMask should only..

Post by Lebostein »

I think I have it. I had some ResizeGadget() commands inside a thread. It seems that causes that error messages... no problem for the old XCode, but for the new
User avatar
mk-soft
Always Here
Always Here
Posts: 5335
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: After update XCode: "nextEventMatchingMask should only..

Post by mk-soft »

Always change gadgets from MainScrope... Never from threads.

Your this i have the module ThreadToGUI. Show signature...
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Post Reply