I'm using absolute paths. I also copied my code directly into the Terminal and it loaded the myapp.app fine. Also, the code runs fine if I run the main executable. It only has an issue when I run the .app folder. The .app folder must put some kind of lock on the main executable.