On 1/18/07, Bruce Waters <[EMAIL PROTECTED]> wrote:
I then tried putting the app on the SD expansion card in the /Palm/Launcher/ folder, to speed up the process. Inserting the card in the Dana I was shown the app icon in the Launcher window as expected, but as soon as I tapped it, the same Fatal Alert came up, and was only dismissable by a hard reset.
what this sounds like is a compiler issue. the entry point to the application is the __Startup__ routine; which, codewarrior normally links by default against your application. with gcc tools; this is the crt0.c code - which, basically locks all your code segments down and allocates your globals. from that code; there is a call to PilotMain(), which is where your code starts. i would check a few things: - your code segment sizes make sure that they are relatively decent sized; a good indicator is to keep them around or below 32768 bytes in size; especially if you want to avoid the problems of jumping > +/32K (limitation of 68k). if your code segments are larger; make more code segments. - your data segment size this is typically your globals; shouldn't be > 64K - compiler should barf. - the location of PilotMain() PilotMain() much be +/- 32K within reach of the __Startup__ routine; and, most importantly - it must be in the code0001.bin segment if you want to handle resets correctly. you mention that when you reset it automatically gives another FATAL on reset? this is because the palmos is broadcasting reset notifications. you could have gotten around this with a cold reset. (reset + up) what you should do is move your PilotMain() to a seperate C file. make sure it gets linked as close as possible to the __Startup__ code and that it exists ONLY within the code0001.bin segment. - try your crashing app on POSE using the VFS emulation you shouldn't need to physically use the device for testing VFS. there is a hostfs.prc file you can install onto POSE which will allow you to test your functions. i would recommend you use a palm m505 based POSE environment, in my experience, thats probably the most stable VFS capable 68k device running under POSE. install hostfs.prc, emulate your memory card and try to run the program. you should do this with BOTH debug and release roms. - good luck :) its compiler bugs like this that make me want to use gcc, as i can control all of the items i mentioned above manually - something most people just wish the compiler would sort out for them (except when its buggy) :P -- // Aaron Ardiri -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
