Ugh, sorry about that - I typed it from memory without trying it. To be fair, I can't see why the hell it's giving that error, it's only a simple bit of code, and only yesterday I used image.include to blit an image in a window. I'll check it out...
Edit: Yep, it's doing the same thing for me too... And I've no idea why, but it works if you use Optimize 5 instead of 4. All that is is integer optimisation, but I guess it changes something with memory allocation or something that lets it work. I've updated the example anyway so that it's now known good code. Again, sorry about that!
Last edited by Daedalus; 11 October 2018 at 00:08.
|