01-13-2023, 02:07 PM
If I were you, I'd assign a LONG variable to _LOADIMAGE result. To load an image only to get its width, it's actually not being "used" according to the Wiki description.
From:
https://qb64phoenix.com/qb64wiki/index.php/LOADIMAGE
From:
https://qb64phoenix.com/qb64wiki/index.php/LOADIMAGE
Quote:It is important to free unused or discarded images with _FREEIMAGE to prevent CPU memory overflow errors.