Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CleanUp Routine, FREEIMAGE, FREEFONT
#1
I'm close to having a new game ready for the Works in Progress thread. Level 1 is done! Today though I was working on the cleanUp sub and am having a couple issues. One font that I'm trying to free is crashing the prog with an illegal function message. The sub closes four other fonts that are similarly dimmed and loaded no problem, but not this one. Also in trying to _freeimage one particular array of hardware images, same deal. It closes other image arrays just fine, but not this one. Anything I should be looking for?

The indexing of the arrays is right, so that's not an issue. Freeing them one at a time or in a loop to ubound gives the same error. I'm now a fairly flummoxed ape...  Thanks for any help offered. 

One other thing, the wiki claims that all loaded sounds are freed upon prog termination, though I see some of us are closing out sounds on wrap up. Is it necessary to close sounds or not? Thnx.

EDIT: Nevermind about the FREEFONT issue. I realized I forgot to switch to a system font before attempting ti free em.
Reply


Messages In This Thread
CleanUp Routine, FREEIMAGE, FREEFONT - by NakedApe - 05-23-2024, 12:55 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Testing for program Install routine. Cross Platform Compatible. ahenry3068 8 1,158 05-20-2025, 11:19 AM
Last Post: SpriggsySpriggs
  Replace routine Pete 3 741 10-31-2024, 04:46 PM
Last Post: Pete
Sad Freefont error Kernelpanic 10 2,052 06-29-2024, 03:26 AM
Last Post: Pete
  Question on a Quick Sort routine Dimster 4 1,009 09-25-2023, 12:29 PM
Last Post: bplus
  Problem with DRAW or my "scanning" routine? James D Jarvis 9 1,898 06-29-2023, 05:39 PM
Last Post: James D Jarvis

Forum Jump:


Users browsing this thread: 1 Guest(s)