The following snip is, as usual, called in the first lines of Pilot Main and
has worked fine until I added the global variable "FeatureSet35Present" and
the call to WinScreenMode, now whenever I reset the emulator (3.5.1 en-color
non-debug ROMs) it hangs with the "tried to read from 0x8003d14d causing a
bus error" msg box, debug is usually impossible (CW6 full install), but when
I can manage to get it to catch, the stack doesn't make sense, so obviously
I'm scrambling up some pointers somehow. It's pretty weird, you don't even
have to run the app, just having it in memory and doing a reset causes the
bus error.
The thing is, when I comment out the two line that use the global, it works
fine. Kinda defeats the purpose tho...
Any Ideas?? Randyp
static Err RomVersionCompatible (UInt32 requiredVersion, UInt16 launchFlags)
{
UInt32 romVersion;
UInt32 RomVer35 = 0x03500000;
Err WSMerr;
UInt32 width,height,depth;
Boolean DeviceDoesColor;
//FeatureSet35Present = false;
FtrGet(sysFtrCreator, sysFtrNumROMVersion, &romVersion);
if (romVersion > RomVer35)
{
//FeatureSet35Present = true;
WSMerr = WinScreenMode(winScreenModeGet, &width, &height, &depth,
&DeviceDoesColor);
}
if (romVersion < requiredVersion)
{.... <snip> usual error msg junk from stationery...
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/