Doesn't matter what the number is, you need to clear memory of old image to reuse number for a new image.
Why don't you just try the one line of code in your program where needed and see if that doesn't fix things?
BTW I am starting to wonder if you are wasting allot of time reloading the same images into your program when you should be just switching imagehandles between loaded images.
Why don't you just try the one line of code in your program where needed and see if that doesn't fix things?
Code: (Select All)
If imagehandle& < -1 then _freeimage imagehandle&
BTW I am starting to wonder if you are wasting allot of time reloading the same images into your program when you should be just switching imagehandles between loaded images.
b = b + ...