On 07-Apr-99 [EMAIL PROTECTED] wrote:
( regarding opening a ROM database in read/write mode )
>>Also, even if you DON'T change anything, you will crash
>>inside the DmCloseDatabase call.
>
> Can you say why? Given that Palm has a lot of apps which run fine from the
> ROM, I don't think this is always true. Can you be more specific? Can you
> give an example?
For example, I get a crash in DmCloseDatabase by doing this:
LocalID dbID;
DmOpenRef dbP;
dbID = DmGetDatabase(0, 0);
dbP = DmOpenDatabase(0, dbID, dmModeReadWrite);
DmCloseDatabase(dbP);
File index 0 is the ~300K System file in ROM. If I open it as dmModeReadOnly
it doesn't crash in the DmCloseDatabase().
Here is the crash in xcopilot/gdb:
89 DmCloseDatabase(dbP);
(gdb) s
Bus error: wrote a long to ROM address 0x10c22e6a
Bus error: read a word from odd address 0x00000001
Now this is on xcopilot which is running a 2.0 Pro ROM so this may not happen
on a modern device.
/* Chris Faherty <[EMAIL PROTECTED]>, finger for PGP */