Steve Janaway wrote:

>I'm getting a Bus Error Exception from Codewarrior when I try to debug
>my app. What is causing it ? Is it some memory management problem ?

Whenever I've seen bus error exceptions, it's usually been thru some kind of
invalid memory access attempt.  Have you always ensured that MemPtrNew
returned non-null pointers before using them?  Have you checked all new
functions of your own that use pointers to manipulate variables?  Have you
checked that any returned pointers don't by accident refer to objects that
were allocated on the stack?  Have you made sure that all calls to Palm OS
functions that use pointers to return results don't by accident pass NULL
pointers?

It might be a good idea to use ErrNonFatalDisplayIf 's liberally thru any
new code of yours to ensure that you haven't made any mistakes in other
places due to typo's etc. ... Anyway, HTH.

Martin





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

Reply via email to