On 3 jan 2005, at 20:19, Peter Vreman wrote: >> begin >> getmem(screen,sizeof(tsdl_surface)); >> sdl_mustlock(screen); >> freemem(screen) >> end. > > It runs fine here. > > Try the commandline compiler without optimizer It's not the optimizer, it's register variables in combination with stack checking (-Ct -O-r) Jonas