09-19-2023, 02:23 AM
@TerryRitchie I created a GitHub issue for the problem here. Having looked a bit closer, it seems like you should be able to avoid the issue if you turn off the `_AutoDisplay` functionality before you create your images. I get mixed results when testing locally, but it does seem to help. You would turn it off by doing a manual `_Display` call, something like this:
Code: (Select All)
_SOURCE Picture
_Display ' Turn off auto display
FOR y = 0 TO 719
FOR x = 0 TO 1279
Pixel(x, y).soft = _NEWIMAGE(1, 1, 32)
_DEST Pixel(x, y).soft
PSET (0, 0), POINT(x, y)
Pixel(x, y).hard = _COPYIMAGE(Pixel(x, y).soft, 33)
Pixel(x, y).ox = x
Pixel(x, y).oy = y
_DEST 0 ' temporarily print values to figure
PRINT x, y, Pixel(x, y).soft, Pixel(x, y).hard ' out why this crashes
NEXT x
_Display ' Obviously you can leave this out if you don't want to see anything during the loop
NEXT y
_AutoDisplay ' turn it back on