Page 1 of 1
					
				[PB 6.12] IDE locks up running console program
				Posted: Mon Sep 23, 2024 4:07 pm
				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
 
			 
			
					
				Re: [PB 6.12] IDE locks up running console program
				Posted: Mon Sep 23, 2024 6:58 pm
				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:".
 
			 
			
					
				Re: [PB 6.12] IDE locks up running console program
				Posted: Tue Sep 24, 2024 5:38 am
				by pjsmith67
				yes, I set the executable type to console before running that snippet.
			 
			
					
				Re: [PB 6.12] IDE locks up running console program
				Posted: Tue Sep 24, 2024 8:58 am
				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.
 
			 
			
					
				Re: [PB 6.12] IDE locks up running console program
				Posted: Tue Sep 24, 2024 3:53 pm
				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.
			 
			
					
				Re: [PB 6.12] IDE locks up running console program
				Posted: Wed Nov 06, 2024 8:43 pm
				by robertfern
				It locks up on me also.
I am still on Ventura
			 
			
					
				Re: [PB 6.12] IDE locks up running console program
				Posted: Wed Nov 13, 2024 10:48 am
				by Bmld756
				Hello, I tested your code without problème on Ocpl-sequoia.