Software crash when using open or save

The thanks goes to Coding Badly, I'd never have figured it out myself. Glad it helped!

Steve