When will be ready the ternary byte from 0 to 6560?
Naah!
Thanks again! Hip! Hip! Hurra! For PB for ever!
Advice:
This Christmas, give PB.

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)
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.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.
Good question, although I can't see how the code below should open a console. With PB 6.30, that's what is happening...Is this a deliberate change or accidental?
Code: Select all
#Testmode = #False
If #Testmode
OpenConsole()
PrintN("Test Output")
EndIfCode: Select all
- Changed GetHIDReportDescriptor() to return a buffer (MemorySize() can be used to get the size, and FreeMemory() to free it)
