Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
program crashes about 20% of the time
#8
(12-18-2022, 01:39 AM)SMcNeill Wrote: One problem I see in the program is that there's no FREE(anything) in use.  You have multiple places where you _LOADFONT and _LOADIMAGE, but there's no place where you _FREEFONT or _FREEIMAGE.  These are going to create memory leaks where program memory usage keeps going up endlessly, and it'll eventually crash on you after it's ran long enough.

I'd suggest moving those to the start of the program, making them a shared variable, and then just loading them once at start up, so you'd never have to worry about them again. 

(I'm still looking for anything else that stands out, but I thought I'd report as I skim along in the code.)

it only loads 1 image and that is at the start of the program. it only loads it once.
Reply


Messages In This Thread
RE: program crashes about 20% of the time - by billythebull - 12-18-2022, 01:54 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  question on determining time spent in area fistfullofnails 9 845 08-25-2025, 01:55 PM
Last Post: fistfullofnails
  how to get a file's modified date/time and size in bytes? madscijr 36 7,859 05-10-2025, 05:17 AM
Last Post: eoredson
  Testing against multiple elements at a time without select case CMR 4 845 04-17-2025, 02:16 AM
Last Post: CMR
  Hard time with hardware acceleration. Pete 8 1,040 03-21-2025, 11:29 PM
Last Post: Pete
  Assigning Date$/Time$ does not wotk eoredson 15 2,562 09-13-2024, 05:05 AM
Last Post: eoredson

Forum Jump:


Users browsing this thread: 1 Guest(s)