game crashes when accessing save file

Monkey Targets Forums/Flash/game crashes when accessing save file

Raul(Posted 2013) [#1]
I uploaded my game on Kongregate: www.kongregate.com/games/rvlgames/girls-with-secrets

but every time the game should access a save file (pressing continue or after finnishing a level) the game crashes.

If I am running it locally there is no problem :|

this is the code I use to save:
Function saveProfile:Void()
		Local stream:FileStream
    	stream = fileHandler.WriteFile("gwssave.txt")
			stream.WriteInt(profileCurrentChapter)
			stream.WriteInt(profileScore)
			For Local s = 0 To 8
				stream.WriteInt(profileSceneStatus[s])
				stream.WriteInt(profileSceneStar[s])
			Next
		fileHandler.SaveAll()
		Print "save done!"
	End



Raul(Posted 2013) [#2]
fixed.


therevills(Posted 2013) [#3]
And how did you fix it?


Raul(Posted 2013) [#4]
the crash was related to my code, nothing with the library. anyway there is still a problem because I 'lose' the savegame after browser is restarted, but from what I see this is only happening on Kongregate, because on my server is working fine..