Save big gcode file MemoryError in the Windows platform.