Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
This program causes QB64 to crash - SOLVED
#1
The small screen resolution when using the font causes an error for me - the program has stopped working and will be terminated. I am attaching the font used to test if it will behave the same on your systems. I understand that the screen height is set small, but if you are debugging a large program, this type of error will definitely be very annoying to deal with.
Code: (Select All)
$NoPrefix
Screen _NewImage(800, 64, 32)
F& = LoadFont("BKANT.ttf", 72, "Bold")
Font F&
Print "QB64 Phoenix Edition"

Bug occur in QB64PE 32bit 3.5.0 and also in QB64PE 64bit 3.6.0

font is not attached more, because problem solved using PrintString. Thanks to Mnrvovfrc (in next reply.)


Reply
#2
Notice if we set NewImage's Y axis to 215, the font text will printed and disappear in moment cca (half second). Strange. If we set the Y-axis value to 216, the text will remain on the screen. But the font size is 72 (this value is also returned by the FontHeight function), so the minimum usable screen size should be 73 pixels in height - but if is screen height lower than 215, is screen without text.

Code: (Select All)
$NoPrefix
Screen _NewImage(800, 215, 32)
F& = LoadFont("BKANT.ttf", 72, "Bold")
Font F&
Print "QB64 Phoenix Edition"
FH = _FontHeight

Line (0, FH + 1)-(_Width - 1, FH + 1)
Sleep


Reply
#3
I hope this font is freeware. Please respect copyright.

Use "_PRINTSTRING" instead of "PRINT".
Reply
#4
For me, no crash nor Print just a line drawn. v3.6 on Windows 10-64 laptop
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Is there any way to tell what within a QB64 program is triggering false AV detetions? hanness 9 832 12-01-2025, 11:04 AM
Last Post: doppler
  Shift key not recognized when focus is changed to QB64 program dano 17 3,023 09-18-2024, 03:15 AM
Last Post: TerryRitchie
Question <solved> QB64 without its IDE GUI ? Fifi 28 6,133 01-14-2023, 06:33 PM
Last Post: mnrvovrfc
  <solved> QB64PE' IDE problems on macOS. Fifi 4 1,004 01-10-2023, 02:12 AM
Last Post: Fifi
  <Solved> QB64PE 4.3.1 can't compile itself anymore. Fifi 2 811 01-09-2023, 06:01 AM
Last Post: Fifi

Forum Jump:


Users browsing this thread: 1 Guest(s)