// Locate our application.
ourDBID = DmFindDatabase ( CARDNUM, d_appName);
// Are we in FLASH ?
if (MemLocalIDKind (ourDBID) != memIDHandle)
ROMbased = true;
Rom/Flash are treated the same. Don't know how to tell if somthing is
specifically in the PalmOS Flash, or the FlashPro part. I suppose you could
check the address and the FP stuff will always be higher than some value.
-MD
-----Original Message-----
From: Petr Bajer <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Friday, March 12, 1999 6:44 AM
Subject: Is my app in flash?
>Steve Lemke <[EMAIL PROTECTED]> wrote:
>>Another way to find out would be to attempt to open your database in
>>read/write mode.
>
>With the release of FlashPro I had reports of fatal exceptions in my app if
>it is in ROM. I have found out that using DmOpenDatabase to try to open my
>app in ReadWrite mode does not return 0 as it should but returns some
>DmOpenRef value. Any following call (incl. DmCloseDatabase) using the
>returned DmOpenRef then leads to fatal exception.
>
>DmOpenDatabase works correctly if used on any other database but the
running
>app.
>So is there a way to find out whether my running app is in ROM?
>
>Thanks,
>Petr Bajer
>
>
>
>