Page 1 of 1
Console do not open on Mac OSX
Posted: Fri Jun 13, 2025 12:50 am
by Spationaute
Good morning,
I tried to make a quick ping application. On Windows the console window opens without problem but not on mac.
// Moved from "Bugs - Mac OSX" to "Mac OSX" (Kiffi)
Re: Console do not open on Mac OSX
Posted: Fri Jun 13, 2025 7:20 am
by Kiffi
no problem here (Mac Mini M4 / Sequoia 15.5)
From the PB-Documentation:
Code: Select all
OpenConsole()
PrintN("Waiting 5 secs before quit...")
Delay(5000)
If your program is intended to be a pure console application (i.e. not a GUI application which sometimes opens a console) then you must remember to set the executable format to 'Console' when you are compiling your programs.
Re: Console do not open on Mac OSX
Posted: Fri Jun 13, 2025 11:29 pm
by Spationaute
Ho! Thanks, you are right. I setup "console" and now it works perfectly fine.
Re: Console do not open on Mac OSX
Posted: Fri Jun 13, 2025 11:38 pm
by Spationaute
Seems that I talked too fast. It crashes when using the debug mode.

Re: Console do not open on Mac OSX
Posted: Sat Jun 14, 2025 10:22 am
by Mindphazer
Maybe you could post your code ?
Re: Console do not open on Mac OSX
Posted: Sat Jun 14, 2025 10:08 pm
by Spationaute
Exact same code that kiffi used.
Re: Console do not open on Mac OSX
Posted: Sun Jun 15, 2025 11:11 am
by Mindphazer
No problem here, even with debugger on...