A bus error means there is a bug in your code where you are writing to a
memory location you have not allocated for your application/library.  Check
your code, make sure you have allocated memory properly and have not copied
a string into too small of a container i.e. copy a 10 char string into
memory allocated for 8 characters.  Also make sure you *are* allocating
memory for pointers and not using a pointer or handle that has expired.
If your libs work with your test code, its time to change your test code.
It may not exercise your library in the particular way that causes the error
condition.  Use Pose to find the error.  Pose will tell you exactly which
line is causing the issue.


----- Original Message ----- 
From: "Ritu Chawla" <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum,emulator-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Thursday, July 01, 2004 6:32 AM
Subject: BUS Error - Using Shared Lib, Please help..


> Hi All,
> I  have created a C++ applciaiton. which is using two shared libraries.
> Initially iwas able to call the functions fromthe app.
> But as the code size is growing i am facing problems .
> From last two days as soon as i try to debug ny applciation by adding the
> libs in EXECUTABLE settings i get folowing
> error:--
> DTSGUI just read from memory location 0x1B640000, causing a bus error.
> A 'Bus error means that applciation accessed a memory location that is not
> in RAM or ROM, nor corresponds to a memory-mapped hardware register.
> I am not able to resolve the problem.
>
>
> My libs are working fine with simple test code. and applciation also works
> file without lib.
> I do not where i am going wrong.
>
> Is it related to some debug setting's
> Can i do debugging of two libs associated with one application in code
> warrior.
>
> Please help me out if possible.
>
> rgds,
> Ritu
>
>
>
>
> -- 
> 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/

Reply via email to