12-17-2023, 10:03 PM
(12-17-2023, 09:15 PM)TerryRitchie Wrote:(12-17-2023, 09:05 PM)SMcNeill Wrote: It's normal behavior, and it's always been that way for us.Yep, that makes perfect sense as to why the variable is not reset. I can't believe I have not noticed this behavior until now. Maybe an additional line in the _FREEIMAGE Wiki to mention that the associated variable will not get reset to 0 could be added.
I believe the main issue one might run into would be with something like the following:
_FreeImage Foo
_PutImage ,Foo
Now, with the above, you're going to get an error message saying, "You're a dummy! You just freed that image!!"
If the value was set to 0, then that's basically saying, "Put the Image(0) to...."
And, as we all know, Image(0) tends to default to the current _DISPLAY or the _DEST, in most cases... Which probably isn't what you actually want to happen here.
https://qb64phoenix.com/qb64wiki/index.php/FREEIMAGE <-- How's that look?