On 16/07/2013 10:54, Ole wrote:Hm... why not increase stack size in EmuTOS? I mean, it's just temporary memory and therefore it wouldn't hurt, or?Of course that would be fixable in EmuTOS. But the problem is also present in Atari TOS, it would be quite insane to allow "bad" programs to run on EmuTOS while they could not run or original TOS.
That's somehow true...
User programs should include a workaround to that USERDEF stackproblem, to cope with bad TOS. They should use some private user stackto avoid that trouble. I posted a (potentially unsafe) solution to this list long ago, but it had poor success.
Yes, I'm rembering that, of course :) Until now I never had hit the problem. But I also rember it wasn't that easy to implement... On the other hand it's
an well known fact that the USERDEF function runs in super mode andthat there is little stack available... CFLIB/GEMLIB should handle it....
Greets, Ole