I don't know much about Sybase, but given that you were doing a string compare, which
is by bytes, it is unlikely an alignment
error.
So it is either a bad pointer, or the program is trying to write to the storage heap
without going through DmWrite. The latter is
also unliekly for a tested program.
My guess: there's a string in there that's not NULL terminator, and the compare is
running off the end of the memory chunk.
But these are never easy bugs to solve. :(
Chris Yourch wrote:
> Hi,
>
> I have a rather large multi-segmented Sybase Ultralite app and I am getting
> a bus error while testing using POSE. I get a msgbox and all it says is "bus
> error" and there is an OK button. The debugger does not have any useful
> information.
>
> I have looked at the offending code and it doesn't make any sense as to why
> it is crashing. It seems to crash somewhere in StrCaselessCompare but I
> suspect that it has something to do with segments.
>
> What is a bus error? What does it usually indicate? Any Ideas?
>
> Regards,
> Chris Yourch
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe, please see
>http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/