Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
program crashes about 20% of the time
#9
By "crash" do you mean it just disappears or hangs?

If you save builds, I'd recommend going back to a build that didn't crash, and comparing what was changed. Another method is to keep stripping out subs one by one until it doesn't crash, and possibly putting the sub back and stripping out enough code to so others can spot it. For instance, if you can strip it down to 300 lines of code, and Steve can't deliver a diagnosis in 30 minutes or less, it's free!

Also, take out _FULLSCREEN and run it windowed alongside Task Manager. See if something you do using the program causes either the CPU or the memory to spike. It's a big help knowing what triggers the crash. It looked like your GOSUB statements were being paired with RETURN statements but double check them to make sure each is returned. Not returning from a GOSUB routine, when frequently used, will cause a stack space leak and lead to a crash.

Pete
Reply


Messages In This Thread
RE: program crashes about 20% of the time - by Pete - 12-18-2022, 09:04 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)