Re: Save Bug
- Posted by Andy Jun 26, 2009
- 1076 views
bernie said...
Andy said...
Hello,
I think this may be a bug. Whenever I goto write data to a file, my program crashes on me. Here is the code.
constant HP = 1 integer handle, fn sequence file, fName fName = getSaveFileName(Main,file,FrostType) if length(fName) = 0 then return end if handle = open(fName,"wb") if handle = -1 then fn = message_box("Save Error", "Save File Error", MB_TASKMODAL) end if print(handle,HP) puts(handle,"\n") close(handle)
I don't see where your getting a handle from ?
Oh sorry. Anyways, I have corrected the code now. Can someone maybe see why there is a bug?