Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QB64 Pac-Man Clone
#15
(12-30-2022, 07:21 AM)mnrvovrfc Wrote:
(12-28-2022, 02:42 PM)TerryRitchie Wrote: Ok, that's an odd one. Line 3622 simply unloads the font from RAM:

_FREEFONT Font
This statement has been unreliable since its creation. In particular the programming system complains when the programmer tries to release the font it thinks is active...

I believe you need to have any surfaces that the font has been assigned to removed from RAM before the font can be removed. In the options subroutine I create a screenshot and I believe that screenshot inherits the font. When the user presses ESC while in the options screen that screenshot is still sitting in RAM and hence the error. I'll need to rework the code to remove that screenshot to account for this.

I've never had a problem with any of the font commands over the years, including _FREEFONT. I've just found a certain order of operations needs to be adhered to when using them. I used to think this was an SDL thing but this same behavior occurs on the latest versions of QB64 as well.
Reply


Messages In This Thread
QB64 Pac-Man Clone - by TerryRitchie - 12-26-2022, 08:10 PM
RE: QB64 Pac-Man Clone - by james2464 - 12-26-2022, 08:33 PM
RE: QB64 Pac-Man Clone - by TerryRitchie - 12-26-2022, 08:47 PM
RE: QB64 Pac-Man Clone - by Jack - 12-26-2022, 10:09 PM
RE: QB64 Pac-Man Clone - by TerryRitchie - 12-26-2022, 10:46 PM
RE: QB64 Pac-Man Clone - by PhilOfPerth - 12-27-2022, 06:42 AM
RE: QB64 Pac-Man Clone - by Dimster - 12-27-2022, 05:21 PM
RE: QB64 Pac-Man Clone - by Dimster - 12-27-2022, 05:37 PM
RE: QB64 Pac-Man Clone - by TerryRitchie - 12-27-2022, 08:31 PM
RE: QB64 Pac-Man Clone - by Dimster - 12-27-2022, 08:37 PM
RE: QB64 Pac-Man Clone - by Jack - 12-27-2022, 09:17 PM
RE: QB64 Pac-Man Clone - by TerryRitchie - 12-28-2022, 02:42 PM
RE: QB64 Pac-Man Clone - by mnrvovrfc - 12-30-2022, 07:21 AM
RE: QB64 Pac-Man Clone - by TerryRitchie - 12-30-2022, 05:10 PM
RE: QB64 Pac-Man Clone - by LEM - 12-30-2022, 07:02 AM
RE: QB64 Pac-Man Clone - by TerryRitchie - 12-30-2022, 05:13 PM
RE: QB64 Pac-Man Clone - by Pwillard - 01-05-2023, 03:43 PM
RE: QB64 Pac-Man Clone - by TerryRitchie - 01-05-2023, 04:16 PM
RE: QB64 Pac-Man Clone - by Dav - 01-05-2023, 11:31 PM
RE: QB64 Pac-Man Clone - by TerryRitchie - 01-06-2023, 12:25 AM
RE: QB64 Pac-Man Clone - by Dav - 01-06-2023, 01:52 AM
RE: QB64 Pac-Man Clone - by TerryRitchie - 01-06-2023, 03:02 AM
RE: QB64 Pac-Man Clone - by madscijr - 01-06-2023, 02:10 AM
RE: QB64 Pac-Man Clone - by mnrvovrfc - 01-06-2023, 02:38 AM
RE: QB64 Pac-Man Clone - by TerryRitchie - 01-06-2023, 02:58 AM
RE: QB64 Pac-Man Clone - by madscijr - 01-06-2023, 03:54 AM
RE: QB64 Pac-Man Clone - by madscijr - 01-06-2023, 03:28 AM
RE: QB64 Pac-Man Clone - by TerryRitchie - 01-06-2023, 02:46 AM
RE: QB64 Pac-Man Clone - by madscijr - 01-06-2023, 03:46 AM
RE: QB64 Pac-Man Clone - by TerryRitchie - 01-06-2023, 05:44 AM
RE: QB64 Pac-Man Clone - by madscijr - 01-06-2023, 03:03 PM
RE: QB64 Pac-Man Clone - by TempodiBasic - 01-08-2023, 07:01 PM
RE: QB64 Pac-Man Clone - by RokCoder - 01-09-2023, 10:12 AM
RE: QB64 Pac-Man Clone - by TerryRitchie - 01-09-2023, 06:55 PM
RE: QB64 Pac-Man Clone - by RedAfro-LIVE - 02-03-2023, 07:49 PM
RE: QB64 Pac-Man Clone - by mnrvovrfc - 02-03-2023, 10:08 PM
RE: QB64 Pac-Man Clone - by RedAfro-LIVE - 02-06-2023, 01:47 PM
RE: QB64 Pac-Man Clone - by SMcNeill - 02-06-2023, 03:19 PM
RE: QB64 Pac-Man Clone - by mnrvovrfc - 02-06-2023, 07:57 PM
RE: QB64 Pac-Man Clone - by TerryRitchie - 02-06-2023, 05:41 PM
RE: QB64 Pac-Man Clone - by RedAfro-LIVE - 02-06-2023, 06:20 PM
RE: QB64 Pac-Man Clone - by TerryRitchie - 02-06-2023, 07:55 PM
RE: QB64 Pac-Man Clone - by madscijr - 02-07-2023, 09:52 PM
RE: QB64 Pac-Man Clone - by TerryRitchie - 02-08-2023, 01:43 AM
RE: QB64 Pac-Man Clone - by madscijr - 02-08-2023, 12:54 PM
RE: QB64 Pac-Man Clone - by bplus - 02-03-2023, 08:17 PM
RE: QB64 Pac-Man Clone - by RedAfro-LIVE - 02-06-2023, 02:41 PM
RE: QB64 Pac-Man Clone - by bplus - 02-06-2023, 05:00 PM
RE: QB64 Pac-Man Clone - by bplus - 02-06-2023, 07:50 PM
RE: QB64 Pac-Man Clone - by bplus - 02-06-2023, 08:22 PM



Users browsing this thread: 42 Guest(s)