So, I had some success with a couple of simple apps for the iPhone. They compile fine and run fine on the device. I advanced to programs using a database. The app compiles fine, but when I load it to the device and start it, the app crashes after displaying the Default.png. I have set the permissions appropriately, and also used ldid on the app. Is there any specific location to keep the database file (the app is in /Application/SampleDB.app)? Is there anyway to debug the application by adding some print statements? I am working on a windows machine so am only using a toolchain and not able to identify the point at which it is conking off. I tried running the app from terminal on iPhone by issueing "./SampleDB" when logged in as root. But nothing happens, The application doesnt show up nor does any error message. I have to click CTRL-C to break the command. Any pointers on this?