newsgroups-index (beta)

Current group: codewarrior.palm

Re: bus error exception at 0x1BC.... while trying to debug on device

Re: bus error exception at 0x1BC.... while trying to debug on device  
Gary Kato
From:Gary Kato
Subject:Re: bus error exception at 0x1BC.... while trying to debug on device
Date:28 Nov 2004 14:20:31 GMT
>Any ideas on what's causing it? I've read other threads on it that
>suggest it's caused by an invalid pointer, pointing to memory that
>isn't there.

That's pretty much it. Somehow your program is trying to access memory that
isn't there. That's the meaning of Bus Error.

Another thing that can cause something like this to happen is not using (or
mis-using) function prototypes. Function prototypes, for functions being
exported to other routines, should only be declared in one header file. Never
copy a function prototype into other source (.c) files. If you end up changing
the interface for that function and don't remember to update the prototypes in
those other source files, the compiler and linker issue no messages but
parameters won't match at runtime causing mucho headaches. This caused a Bus
Error in code I took over a few years ago.

You should download docs on the Motorola Dragonball that your Palm uses and see
what it does on a Bus Error. You can probably trace what caused the error or
where it happened.

Good luck.
   

Copyright © 2006 newsgroups-index   -   All rights reserved   -   Impressum