[PB 6.12] IDE locks up running console program

Post bugs related to the IDE here
pjsmith67
User
User
Posts: 48
Joined: Thu Apr 26, 2018 3:09 pm

[PB 6.12] IDE locks up running console program

Post by pjsmith67 »

Running this code snippet as a console program causes the IDE to lock up every single time.

Program runs, does not display anything and then IDE locks up. Works fine if I compile it on the command line.
Using PB 6.12
MacOS: 13.6.9

Maybe I'm doing something wrong?

Code: Select all

Procedure main()
  OpenConsole()
  PrintN("hi")
  CloseConsole()
EndProcedure

main()
Phil
User avatar
Shardik
Addict
Addict
Posts: 2058
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Re: [PB 6.12] IDE locks up running console program

Post by Shardik »

pjsmith67 wrote: Mon Sep 23, 2024 4:07 pm Running this code snippet as a console program causes the IDE to lock up every single time.

Program runs, does not display anything and then IDE locks up. Works fine if I compile it on the command line.
Using PB 6.12
MacOS: 13.6.9

Maybe I'm doing something wrong?

Code: Select all

Procedure main()
  OpenConsole()
  PrintN("hi")
  CloseConsole()
EndProcedure

main()

For console programs you have to change the Executable format from "MacOS" to "Console" before executing it. You can change the setting in

Compiler > Compiler Options...

in the ComboBox behind "Executable format:".
pjsmith67
User
User
Posts: 48
Joined: Thu Apr 26, 2018 3:09 pm

Re: [PB 6.12] IDE locks up running console program

Post by pjsmith67 »

yes, I set the executable type to console before running that snippet.
User avatar
Shardik
Addict
Addict
Posts: 2058
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Re: [PB 6.12] IDE locks up running console program

Post by Shardik »

pjsmith67 wrote: Tue Sep 24, 2024 5:38 am yes, I set the executable type to console before running that snippet.
Sorry, but I have tested your code snippet on MacOS 13.7 'Ventura' using PB 6.12 with executable format "Console" and it opens a console and works like a charm.
pjsmith67
User
User
Posts: 48
Joined: Thu Apr 26, 2018 3:09 pm

Re: [PB 6.12] IDE locks up running console program

Post by pjsmith67 »

well, crap... I dunno. It locks up on me every single time and I have verified the executable type is set to console.

Let me try "emergency repair procedure #1"... reboot.
User avatar
robertfern
User
User
Posts: 38
Joined: Fri Feb 02, 2018 10:33 pm
Location: New Jersey

Re: [PB 6.12] IDE locks up running console program

Post by robertfern »

It locks up on me also.
I am still on Ventura
Mac OSX Ventura & Windows 10, PB 6.12
Bmld756
User
User
Posts: 30
Joined: Mon Sep 19, 2022 3:30 pm

Re: [PB 6.12] IDE locks up running console program

Post by Bmld756 »

Hello, I tested your code without problème on Ocpl-sequoia.
IMAC 21.5 2012 Core I5 - 2.70 Ghz. 16 GB NVIDIA GeForce GT 640M 512 Mo. MacOs OCPL Sequoia 15.0
MacBook Air M1 - 8Go - Sonoma 14.1
Post Reply