09-27-2022, 07:03 PM
(09-27-2022, 05:07 PM)ChiaPet Wrote: Is it necessary to close sound files and frees images before terminating
the program with SYSTEM? Thought SYSTEM freed up everything.
As always from Terry, it's mighty interesting code to study, made much
easier with meaningful variable names and tidy comments.
To tell the truth I'm not sure what SYSTEM does upon exit. I've always taken the opinion that cleaning up RAM before a program exits is best practice. Can someone with knowledge of the underlying C code chime in on this? Is garbage collection taken care of properly when a QB64 program exits?
I got into the habit of over-commenting source code when I used to dabble in Assembler many years ago. The comments are more for me than anything else. It amazes me how hard it is to decipher my own un-commented code from even a year earlier. A quick stroll through my comments brings me up to speed pretty quick.