Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
_FREEIMAGE Behavior
#5
(12-17-2023, 09:05 PM)SMcNeill Wrote: It's normal behavior, and it's always been that way for us.

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.  Smile
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.
New to QB64pe? Visit the QB64 tutorial to get started.
QB64 Tutorial
Reply


Messages In This Thread
_FREEIMAGE Behavior - by TerryRitchie - 12-17-2023, 08:21 PM
RE: _FREEIMAGE Behavior - by MasterGy - 12-17-2023, 08:59 PM
RE: _FREEIMAGE Behavior - by TerryRitchie - 12-17-2023, 09:13 PM
RE: _FREEIMAGE Behavior - by SMcNeill - 12-17-2023, 09:05 PM
RE: _FREEIMAGE Behavior - by TerryRitchie - 12-17-2023, 09:15 PM
RE: _FREEIMAGE Behavior - by SMcNeill - 12-17-2023, 10:03 PM
RE: _FREEIMAGE Behavior - by SMcNeill - 12-17-2023, 10:05 PM
RE: _FREEIMAGE Behavior - by TerryRitchie - 12-17-2023, 10:32 PM



Users browsing this thread: 2 Guest(s)