Thanks Ben,
I use EvtSetNullEventTick(TimGetTicks()+5)  to generate nilevents.
Maybe this causes the launcher's database cannot be opened at the moment.
Do you have any suggestion?
Or the only way is to change the method for storing preferences.


-----Original Message-----
From: Ben Combee [mailto:[EMAIL PROTECTED]
Sent: Monday, May 31, 2004 2:40 PM
To: Palm Developer Forum
Subject: Re: queue full error


At 01:24 AM 5/31/2004, you wrote:
>Dear all,
>I use PrefGetAppPreferences && PrefSetAppPreferences to store some
>parameters when pressing keyboard keys.
>It works good except pop-up trigger in category form.
>It shows "LauncherMain.c, Line:1137, queue full err!" .
>What does it means?
>I check the key queue and no keys in the queue.

This error is interesting, and I can't give you a full explanation of 
what's happening, but maybe I can tell you enough for you to figure out the 
problem.

The application launcher in Palm OS 5 registers for notifications to be 
sent when databases are created, deleted, made dirty, or changed.  It uses 
this to track changes to DBs that could affect the application list.  When 
the launcher gets one of these notifications, it can either process it 
immediately, or add it to a queue that is checked sometime in the 
future.  This queue has 32 entries.  The main reason for it not to process 
it immediately is that the launcher's database cannot be opened at the 
moment.  I don't know what situations prevent this access.

I'd guess that PrefSetAppPreferences is opening the pref DB for writing, 
this is sending a notification, and all of those notifications are adding 
up to 32 at a time when the launcher isn't able to do its processing.

I would suggest using some other method for storing your preference, at 
least temporarily.  A feature might work well here.

-- Ben Combee, DTS technical lead, PalmSource, Inc.
    Read "Combee on Palm OS" at http://palmos.combee.net/



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



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

Reply via email to