>The following code snippet makes the Palm OS 5 simulator crash... >The offender clearly is PrefGetAppPreferences(...)
Perhaps you've done some investigation that supports this assertion, but there's a lot of information that you haven't provided. Without that, few people could guess what's going wrong. What precisely is the crash? Does it bring up a dialog, and if so what does the dialog say? Does it offer to connect to a debugger, and if so where does the debugger say the crash is happening? (If possible view your code in assembly to figure out precisely what's being executed, even more precisely than knowing which line you're on.) What version of the Simulator are you using? If not dr10 (currently the latest), does it happen on dr10? How big is tempPrefs? (I.e. are you overflowing your stack with this potentially large local variable?) What if you don't allocate it as a global, but rather with MemPtrNew, so it isn't on the stack? Investigating this sort of stuff is crucial to debugging, on any system. Apologies if you've already done this investigation and just didn't post it... but please do if you want help. -David Fedor PalmSource, Inc. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
