>What precisely is the crash? Does it bring up a dialog...

No, the app dies completely and it brings out the XP dialog that wants to
report the incident to Microsoft.

>What version of the Simulator are you using?

I can reproduce that with DR11 that shipped today.

> How big is tempPrefs?

It's hardly big, see for yourself. It's allocated as a local.

typedef struct {
    Boolean includeInGlobalFind;
    } ApplicationPreferenceType;

static UInt32 AppMain(UInt16 cmd, MemPtr cmdPBP, UInt16 launchFlags)
{
    Err error;
    UInt16 prefsSize;
    ApplicationPreferenceType tempPrefs;
    
    switch (cmd) {
        case sysAppLaunchCmdFind:
            if (PrefGetAppPreferences(appFileCreator, appPrefID, &tempPrefs,
&prefsSize, true) != noPreferenceFound) {
                if (tempPrefs.includeInGlobalFind) SearchDB
((FindParamsPtr)cmdPBP);
                }
            break;
    

Since invoking SearchDB() without checking for preferences first works, I
assumed that PrefGetAppPreferences was the culprit, as it might not have
been correct to invoke it during sysAppLaunchCmdFind. Obvioulsy you don't
seem to say so.

MT
-- 
Get MedCalc, the free Palm OS medical calculator
http://medcalc.med-ia.net

 


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

Reply via email to