problem with saveload and texture replace

can anyone tell me why if i replace texture and than i save the game blender crash?
in the saveload script i didn’t write the code to save texture but id like to know where is the problem causes crash.
thx for help.
“t” to change texture, “s” to save game and “l” to load

sorry wrong forum ><
can anyone move this topic to game engine pls?

Moved from “General Forums > Blender and CG Discussions” to “Game Engine > Game Engine Support and Discussion”

I can’t tell but it smells like you are accessing data that is not available anymore.

Edit:

A little bit different but the same cause: You store a reference to a texture in a property. This is in general a good idea.

BUT, you store ALL properties in your storage for saving. This is something you should not do.
Better check if the data in the property is savable. Only store if it is a string, number or a container with this types.

If it is not savable, then you need to convert it in a proper format (e.g. texture name). You already do that with other objects (e.g. position, scene).