If I use Savetext on a dir + filename that doesn't exist it simply crashes. The function itself doesn't return true of false like other file commands. So I can't catch an error that way.
It catches the first error, but it crashes as soon as you do the same mistake again?
This is a bit weird, it behaves like you would expect in Debug mode with all different types of exceptions. But in Release mode, it only allows ONE null pointer exception, all the others work as expected.