PureBasic 6.30 beta 6 is ready !

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
minimy
Enthusiast
Enthusiast
Posts: 762
Joined: Mon Jul 08, 2013 8:43 pm
Location: off world

Re: PureBasic 6.30 beta 5 is ready !

Post by minimy »

Thank you very much PB team!!
When will be ready the ternary byte from 0 to 6560? :lol:
Naah! :wink: im really happy with PB, is very light, easy to learn, fast, multi OS and the best community and forum.
Thanks again! Hip! Hip! Hurra! For PB for ever!

Advice:
This Christmas, give PB. :mrgreen:
If translation=Error: reply="Sorry, Im Spanish": Endif
threedslider
Enthusiast
Enthusiast
Posts: 470
Joined: Sat Feb 12, 2022 7:15 pm

Re: PureBasic 6.30 beta 5 is ready !

Post by threedslider »

Features and fixes are welcome for always ! :D

Thanks to Fred and Team !

Happy Christmas !

@minimy : Yeah PB for Christmas ! I hope :mrgreen:
Matheos
New User
New User
Posts: 2
Joined: Sat Dec 13, 2025 9:23 pm

Re: PureBasic 6.30 beta 5 is ready !

Post by Matheos »

Hi, I noticed this variation in PB 6.30 Beta 5. We have some historic code that used PrintN for debugging purposes when our application was under development and hadn't noticed it was still present. Under PB 6.20 and earlier, it didn't open a console window as #Testmode was false, but under 6.30 it opens a console window even when the code isn't executed.

I'm not sure if it's intended, aside from the fact that we could have used CompilerIf.

Code: Select all

; * Enable 'Use Debugger'

; * Note - console window is opened in PB 6.30 Beta 5, not in former version 6.20 and earlier

#Testmode = #False
If #Testmode
  ; OpenConsole()
EndIf

;
;  Do something
;

If #Testmode
  PrintN("Test Output")
EndIf

Delay(5000)
User avatar
DeanH
Enthusiast
Enthusiast
Posts: 284
Joined: Wed May 07, 2008 4:57 am
Location: Adelaide, South Australia
Contact:

Re: PureBasic 6.30 beta 5 is ready !

Post by DeanH »

Thanks for the clue. I did some testing. It looks as if any console function is anywhere in the code - even if the console itself is not opened and the function not actually used - running the code from the IDE opens the console window regardless. I have a little old program based on the Atomic Web Server that uses ReadConsoleData and WriteConsoleData with no other console commands. The console window pops open when it is run from the IDE. However, it does not open from a compiled exe. Is this a deliberate change or accidental?
Matheos
New User
New User
Posts: 2
Joined: Sat Dec 13, 2025 9:23 pm

Re: PureBasic 6.30 beta 5 is ready !

Post by Matheos »

DeanH wrote: Tue Dec 16, 2025 11:04 pm Thanks for the clue. I did some testing. It looks as if any console function anywhere in the code - even if the console itself is not opened and the function not actually used - running the code from the IDE opens the console window regardless. I have a little old program based on the Atomic Web Server that uses ReadConsoleData and WriteConsoleData with no other console commands. The console window pops open when it is run from the IDE.
Thanks for posting back about it, agreed with regard to the findings, which is that any console function anywhere in the code will open a console if compiling with the debugger. We always make use of the debugger for software testing and some INCLUDEFILE code contains unit tests that are switched on or off at any time, so these consoles are popping up in several concurrent client-server GUI screens when they are not needed.
Is this a deliberate change or accidental?
Good question, although I can't see how the code below should open a console. With PB 6.30, that's what is happening...

Code: Select all

#Testmode = #False
If #Testmode
  OpenConsole()
  PrintN("Test Output")
EndIf
Fred
Administrator
Administrator
Posts: 18406
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic 6.30 beta 5 is ready !

Post by Fred »

It was to try to fix this bug: viewtopic.php?t=87683, we need to install the exception handler at the program start so a console needs to be created to do so. I will change back this fix, as it's not really a common case anyway.
Fred
Administrator
Administrator
Posts: 18406
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic 6.30 beta 6 is ready !

Post by Fred »

A new beta version is available, hopefully the last ! It has only a few changes:

Code: Select all

- Changed GetHIDReportDescriptor() to return a buffer (MemorySize() can be used to get the size, and FreeMemory() to free it)
Bugfixes for this version:This list was created automatically. All updated bug threads from the date of the last final version have been determined.
threedslider
Enthusiast
Enthusiast
Posts: 470
Joined: Sat Feb 12, 2022 7:15 pm

Re: PureBasic 6.30 beta 6 is ready !

Post by threedslider »

Thanks a lot ! Awesome from fixes ! :mrgreen:
User avatar
Skipper
User
User
Posts: 64
Joined: Thu Dec 19, 2024 1:26 pm
Location: Europe

Re: PureBasic 6.30 beta 6 is ready !

Post by Skipper »

Thank you, Fred & team, for your continued support. :D
  • Win-11 on x64 XEON
  • Mint Linux on x64 i3 and on x64 i5
  • MacOS Monterey on Intel x64
  • Various Raspberry Pi's

miso
Enthusiast
Enthusiast
Posts: 590
Joined: Sat Oct 21, 2023 4:06 pm
Location: Hungary

Re: PureBasic 6.30 beta 6 is ready !

Post by miso »

Thanks, I'm testing this.
User avatar
minimy
Enthusiast
Enthusiast
Posts: 762
Joined: Mon Jul 08, 2013 8:43 pm
Location: off world

Re: PureBasic 6.30 beta 6 is ready !

Post by minimy »

Thank you very much PB team!
If translation=Error: reply="Sorry, Im Spanish": Endif
Post Reply