What kind of things could cause my 68K app (developed w/ PODS 1.1, multi-section) to run fine when compiled as Debug, but not as Release?
Thanks to others in this forum, I've carefully put all my function prototypes in one .h file, with the annotations for which section that function is in. I compile the app with "DEBUG_OR_RELEASE=Debug", and it runs fine. Checking flow with the debugger, and everything checks out just the way I expect. But if I change "Debug" to "Release", there are some problems. First, a label whose text gets set with FrmCopyLabel() gets random characters of garbage instead of the intended string. This sometimes causes a crash, if the random garbage looks like a too-long string for that label. When I check this function in debug mode, the data gets put into the correct location, and FrmCopyLabel() correctly displays it. If I shift which section the calling function resides in, I can eventually find a combination that will work. But is there something I'm doing wrong? The string variable that holds the data intended for the label is a global, declared as char Msg[100]. Also, when a menu item is clicked and it opens a modal dialog, the dialog seems to behave normally, but when it's closed, the app restarts like when it's first launched. I would appreciate any guidance. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
