Greetings all,

Scenario: I've come across (what I think is) an interesting problem.  I'm
working on some Palm OS debugging tools for use within my company during app
development.  I want to make sure that any internal developers using my code
in the future will be developing and testing using debug ROMs, so I'm
writing some code in my debugging harness which won't run unless it detects
it is on a debug ROM.  I've searched through the documentation and also
looked at SystemMgr.h, but I can't figure out a good way for detecting if my
code is running on a debug vs. normal build of a ROM.  

Question:  Is there a way for my code to determine at runtime if it is
running on a debug rom?  I've tried the following, but it doesn't work:

        err = FtrGet(sysFtrCreator, sysFtrNumROMVersion, &romVersion);
        if (sysGetROMVerStage (romVersion) == sysROMStageDevelopment)
        {
                /* I'm on a debug ROM */
                StrCopy (hexString, "Debug ROM.");
        }
        else
        {
                /* I'm on a normal ROM.  Tell the developer to use a debug
ROM */
                StrCopy (hexString, "Non-Debug (normal) ROM");
        }

I thought that sysROMStageDevelopment meant that the ROM was a debug ROM,
but I was mistaken.

Cheers,

-DGA

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

Reply via email to