The 3-rd test case: require"profiler" for k=1,1000 do print(k) profiler.start("log1.txt") profiler.stop() end It crashes after 510 is printed. -- Shmuel