Hello Mr. Keith, Thanks for showing me the site for asking questions but I don't think that my questions are that bad at all. Basically I can't disclose much of our s/w design due to company policy, if that is creating problems then I am sorry but I can't help it. Now we are successful in removing the Bus Error problem and started attacking some other problems. Thanks anyways for taking time & efforts to reply my mails. Dhanashri.
----- Original Message ----- From: "Keith Rollin" <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Wednesday, December 31, 2003 3:42 AM Subject: Re: Help !!! SysUIAppSwitch crashes > Dhanashri, > > I think it's time to refer you to: > > <http://www.catb.org/~esr/faqs/smart-questions.html> > > In particular, your question is difficult to answer because of the following: > > * You don't say where your application is crashing or why. > > * You don't say what development tools you are using or what platform > you are developing on. > > * You refer to dubious error messages. For instance, I don't > recognize "Bus Error- Connect to Palm Debugger" as being a message > displayed by a tool that supports Palm OS 4.1 development. As well, > you refer to "the debugger" warning that you are using a trap that is > not allowed: I'm not familiar with any debugger that performs that > type of checking. > > * Your two messages are not consistent. The first refers to you > having a Bus Error, the second refers to you having a stack overflow > problem. I'm having a difficult time understanding the big picture > from these two small pieces. > > * You don't say what you've done to try to track down the problem. > For instance, I'm curious to know if you've used the Palm OS > Emulator. If you had, the Emulator would have told you exactly when > and where the overflow occurred, and what functions were taking up > all the stack space. > > -- Keith > > > At 12:59 PM +0530 12/30/03, Dhanashri wrote: > >Hello Keith, > >thanks for the reply. We could find out that whenever the SysGetStackInfo > >API returns false, and our code returns after calling the SysUIAppSwitch, > >then the Bus Error occurs. But we cannot test our code in the debugger as we > >have used a trap which the debugger says is not allowed. Please suggest what > >we could do about the stack problem, the stack overflows but we are not able > >to find out the reason. > >thanks & regards, > >Dhanashri. > > > >----- Original Message ----- > >From: "Keith Rollin" <[EMAIL PROTECTED]> > >To: "Palm Developer Forum" <[EMAIL PROTECTED]> > >Sent: Tuesday, December 30, 2003 3:36 AM > >Subject: Re: Help !!! SysUIAppSwitch crashes > > > > > >> Dhanashri, > >> > >> You haven't provided any information on where the crash is occurring. > >> For all we know, your application could be crashing at any time > >> between the call to SysUIAppSwitch and the point where your > >> application exits. > >> > >> I would recommend doing what the error message suggests, and use a > >> debugger to find out where your application is crashing. *Then* you > >> may be able to figure out *why*. > >> > >> -- Keith > >> > >> At 3:43 PM +0530 12/29/03, Dhanashri wrote: > >> >We have an application where we call SysUIAppSwitch to switch to > >> >different other applications on different input conditions. This is > >> >written for Palm OS 4.1. But this code frequently crashes with this > > > >error "Bus Error- Connect to Palm Debugger". If we remove the > >> >SysUIAppSwitch calls, there is no such error seen. We are using the > >> >API as follows : > >> > > >> > DmSearchStateType SearchType; > >> > error = DmGetNextDatabaseByTypeCreator(true, &SearchType, > >> >'appl', appID, false, &cardNo, &dbID); > >> > if(!error) > >> > { > >> > error = SysUIAppSwitch (0, dbID, sysAppLaunchCmdNormalLaunch, > >NULL); > >> > if (error) > >> > ErrAlert (error); > >> > } > >> > else > >> > { > >> > ErrAlert (error); > >> > } > >> > > >> >Please advise us on what else should be done or what could be wrong in > >this > > > >code. > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
