At 12:28 PM 1/6/2004, Ben Combee wrote:
At 12:09 PM 1/6/2004, Vu Pham wrote:
Learning the source of HsNavSample makes my app run with navigator keys, but
compiling the sample causes the Cw9.2 crashes with the error :

Palm OS 68K Linker encountered an unhandled exception 0x00000005 at addres
.... ( the memory  at address ... could not be written )
Localtion : PalmOS68KLinker.dll: 0x .....
Crashdump written to 'free memory'.xxxx.xxxx.dump

Anybody gets this problem, or something with my settings ?

Hmmm, I used that sample pretty extensively in my development of PilRC 3.x's support for NAVIGATION resources. I didn't see a crash like this. However, I will re-download the project and try it out again and see what happens.

OK, a few quick observations.


Handspring ZIPed up the example without cleaning it up properly. When you expand the ZIP file, please immediately remove the HsNavSample_Data folder, as well as the (CW Debug) and (CW Release) folders. These will be recreated by the CW IDE, and the ZIP file has the files in these folders as read-only which can cause problems with the linker.

Second, the RCP file in this sample uses the old syntax for specifying a navigation resource. If you've updated to PilRC 3.1 from http://sf.net/projects/pilrc, you can replace the whole "NAV resources" section of the RCP file with the following code:

 //=======================================================
 //NAV Resources
 //=======================================================

#define kFrmNavHeaderFlagsObjectFocusStartState 0x00000001
#define kFrmNavHeaderFlagsAppFocusStartState    0x00000002

NAVIGATION ID mainFormID
    INITIALSTATE kFrmNavHeaderFlagsObjectFocusStartState
    INITIALOBJECTID mainFormTableID
    JUMPOBJECTID mainFormDetailsButtonID
    BOTTOMLEFTOBJECTID mainFormDetailsButtonID
    NAVIGATIONMAP
      ROW mainFormTableID
      ROW mainFormDetailsButtonID
    END

I've got instructions on updating the PilRC compiler in V9 at palmoswerks.com.

--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com



-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to