Menu

#92 Device resets when loading PADict

open
nobody
None
5
2007-02-06
2007-02-06
No

Thanks very much for writing PADict - I use it almost every day and it usually works great :-)
I'm using PADict 0.9.0 on a Treo 680.

If the device is soft reset while running the application, KJPADScratchPadDB is sometimes not deleted. If this database exists and has a record in it when PADict is started, the device will crash.

This occurs in a call to DmResizeRecord, jstrokeGad.c line 328. This is because of a bug in the Palm OS data manager: if a record is resized without previously being loaded into the DBCache, the device will reset.

To fix this, there are a few options. One is to precede the DmResizeRecord call with:
DmQueryRecord(lContext->pAppDb, KJPAD_RAW_STROKE_RECORD);

The other option would be to simply delete the database at the beginning of KJPADDataBaseInit if it already exists. Since it is a scratch pad database, it shouldn't have any useful data anyway.

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Hello, I installed padict on a Palm Z-22 and was all OK until few days ago.

    As soon as I try to start padict appears the following error: "the last PAdict session was not terminated properly".

    Then I can only reset the Palm.........

    Can you help me? Thanks in advance

    Bea from Italy

     
  • Chris McNett

    Chris McNett - 2007-02-22

    Logged In: YES
    user_id=1712474
    Originator: YES

    Hi Bea,

    If this is the same issue I was having, you should be able to fix the problem by deleting the "KJPADScratchPadDB" database using a tool like FileZ.

    Or, you could simply remove PADict altogether and reinstall it. I think that should work as well, since "KJPADScratchPadDB" will probably get removed when you remove PADict.

    Good luck!
    -- Chris

     
  • Nobody/Anonymous

    Logged In: NO

    Thank you very much Chris!!! I finally can use my Palm again.

    Kind regards.

    Bea

     
  • Jose Fonseca

    Jose Fonseca - 2007-06-23

    Logged In: YES
    user_id=80087
    Originator: NO

    I was also getting resets when starting padict and removing KJPADScratchPadDB with FileZ and it solve the problem.

    This should should be in a FAQ.

    Thanks.

     

Log in to post a comment.