Oh dear, man... I know where the problem is at and I have a vague idea how I can solve it, and it's a totally logical issue!
This can currently only be a 32bit application, but you've got so many layers with so much (beautiful) data on them, that it bursts the 32bit bubble. Now I am going to change the whole file system because of this, which is rather traumatic to me

, but I will still do it. Yet, I can't tell how soon this will be done.
I really hope you can forgive me, but you should try to optimize your use of layers for now. I know this isn't all that easy, since my layer merging is still rather simple and you may have to revisit your painting strategy a little bit.
I will go at it as hard and as fast as I can as soon as I can. Shit. It annoys me, too, so very much, that I have to run into such troubles. We already have 64bit machines, but Blitzmax really wasn't expected to ever scratch those memory boundaries, haha. Shiiiiat.
Anyway, I'll be on it, Zafio, and I'm truly, really, really sorry. The only upside is: It's not my code or the rest of my code, rather. It's purely a memory management issue of the file system. And that is good. Better than having a trouble in the middle of the code somewhere.
I can prevent the crash, but it would prevent the saving of the file, too, hahaha... doh. Or partially only, which is just as stupid.
I wonder how you were able to save it in the first place, actually!? Impressive.

But what you've painted there is just gorgeous! I hope you can find an alternative way to proceed with it, because it would be an unforgivable loss not to have you wrap it up! It's exquisite!