ReneMiner
14-11-2012, 22:12
I'm writing some mesh-editor, this time uses textures, now I got a problem:
User is allowed to browse his drives to load textures or models. But if user decides to choose an unsupported file (maybe compressed *.tga or else), script-execution stops and throws error. Same if try to load sprites or corrupted meshes.
I can't find anything about Error-Handling except Err/ErrClear and that is useless since script already stopped.
How can I prevent thinBasic from stopping script-execution in these cases?
couldn't methods just return False if doesn't load instead of stopping execution?
cannot continue coding until problem is solved :(
User is allowed to browse his drives to load textures or models. But if user decides to choose an unsupported file (maybe compressed *.tga or else), script-execution stops and throws error. Same if try to load sprites or corrupted meshes.
I can't find anything about Error-Handling except Err/ErrClear and that is useless since script already stopped.
How can I prevent thinBasic from stopping script-execution in these cases?
couldn't methods just return False if doesn't load instead of stopping execution?
cannot continue coding until problem is solved :(