Re: Debugging a bus error

2008-11-26 Thread Dmitry Grinberg
only if the prevopis overwrite overwrote a pointer you're using at bus error site. Bus error means either accessing memory the does not exist (physical address) or unaligned access (access word or halfword on non-even address). Since you said "bus error" and not "fatan except

Re: Debugging a bus error

2008-11-25 Thread Michal Seliga
can make check happen ore often and soon you will know exact line Luc Le Blanc wrote: > I ported a piece of mathematical C# code to MW C++ and at some point, a > perfectly legit API frm call causes a bus error. I suspect the error is > caused by some earlier memory overwrite in the porte

Debugging a bus error

2008-11-25 Thread Luc Le Blanc
I ported a piece of mathematical C# code to MW C++ and at some point, a perfectly legit API frm call causes a bus error. I suspect the error is caused by some earlier memory overwrite in the ported classes. Are there tricks to detect such overwrites or to test the integrity of the memory? Luc

Bus error on WinRGBToIndex() OS 3.5

2008-05-28 Thread PierreLagacé
Hi, I'm having this message when trying to set the videomode in 4 bit depth on the POSE (rom : OS 3.5 EZ dbg Device: Palm V). Here the code snippet: void setVideoModeToGrayScale() { Err error; UInt32 width = 0; UInt32 height = 0; UInt32 depth = 0; Boolean enableColor = false;

Re: Bus error while setting field in debug ROM

2008-05-28 Thread Dave Lippincott
You could make txtH static or increase its scope so its valid for the life of the field. - Original Message - From: "Clark Dorman" <[EMAIL PROTECTED]> To: "Palm Developer Forum" Sent: Friday, November 17, 2000 8:36 AM Subject: Bus error while setting field

Re: Bus error while setting field in debug ROM

2008-05-28 Thread Ted Trela
(fldP); } "Clark Dorman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Greetings, > > I am getting a bus error when I try to set a field text handle an > then update the field. Below is a code fragment. The error is occurring > somewhere in the bo

Bus Error @ BmpCreate

2008-05-28 Thread nim bha
Following code is giving Bus Error at bmp create (last line). Any idea. I am using SDK 3.5 and GNU gcc for compiling application. Using Emulator for testing with release ROM ( Palm OS 3.5-en-color.rom ) . Also I have install newest PilRC. With Code warrior this piece is perfectly fine

Re: Bus Error @ BmpCreate

2008-05-28 Thread nim bha
Sorry I did not mentioned. This is only a partial code with no compilation error and all the variable r declared. Bus error comes up when i complete drawing a line and lifts the pen. Thanks, Nimesh. Tim Charron wrote: Content-Transfer-Encoding: 7bit X-MDaemon-Deliver-To: palm-dev

RE: bus error "destroy global chain"

2004-11-03 Thread Ben Combee
At 02:50 PM 11/3/2004, you wrote: So I should never reallocate global variables in appstop? What do you mean exactly by reallocating global variables? That seems like a very odd thing to do. I was referring to using something like a call to MemHeapFreeByOwnerID to free everything in your app.

RE: bus error "destroy global chain"

2004-11-03 Thread Ornstein, Adam
I edited out all of the code that reallocated space and I still always receive that same error about the same location (0xFE00) that states that there is a bus error, I guess I should just ignore it on POSE? At 02:36 PM 11/3/2004, you wrote: >I reallocate the assigned space to all glo

RE: bus error "destroy global chain"

2004-11-03 Thread Ornstein, Adam
So I should never reallocate global variables in appstop? Ok, I know you know what your talking about. Thanks! -Original Message- From: Ben Combee [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 03, 2004 3:41 PM To: Palm Developer Forum Subject: RE: bus error "destroy g

RE: bus error "destroy global chain"

2004-11-03 Thread Ben Combee
At 02:36 PM 11/3/2004, you wrote: I reallocate the assigned space to all global pointers on AppStop, and then I delete those pointers. This helped prevent memory leaks previously, would this problem be related to those pointers or do you think it might be a different global variable of mine. If yo

RE: bus error "destroy global chain"

2004-11-03 Thread Ornstein, Adam
codewarrior generated... I've been trying to delve into the application's memory locations, but nothing seems to be popping out at me... At 10:21 AM 11/3/2004, you wrote: >Hi, > >I'm getting a strange bus error. It occurs on emulators when the program >exits, however i

Re: bus error "destroy global chain"

2004-11-03 Thread Ben Combee
At 10:21 AM 11/3/2004, you wrote: Hi, I'm getting a strange bus error. It occurs on emulators when the program exits, however in debug mode, it only lists Startup, and destroy global chain on the screen. The only code that it brings me to shows me assembly code... I'm a little baffled

bus error "destroy global chain"

2004-11-03 Thread Ornstein, Adam
Hi, I'm getting a strange bus error. It occurs on emulators when the program exits, however in debug mode, it only lists Startup, and destroy global chain on the screen. The only code that it brings me to shows me assembly code... I'm a little baffled... Thanks. -- For informatio

Re: When i use DmOpenDatabase i got the Bus Error And Handle free error

2004-09-20 Thread Matt Graham
piyush jain wrote: line --- MemoryMgr.c free handle so plese tell me how i can create and open the multiple database for my application. It looks like you're calling DmOpenDatabase() right after DmCreateDatabase(). Trying putting a DmFindDatabase() in between those 2. /* * Matt Graham * Palm O

When i use DmOpenDatabase i got the Bus Error And Handle free error

2004-09-17 Thread piyush jain
hello all , In my palm application i hava to use Multiple data base for my application , but when I use DmFindDatabase ( to find our the data base local id ) and DmOpenDatabase ( to open database ) i get the error :"bus error " line --- MemoryMgr.c free handle so plese tell me

RES: Bus error while deallocating char**

2004-08-11 Thread Desenvolvimento 3
IÂm sorry, in the code I forgot to increment the counter variable... hehehe bye -Mensagem original- De: Desenvolvimento 3 [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 11 de agosto de 2004 10:24 Para: Palm Developer Forum Assunto: RES: Bus error while deallocating char** You must

RES: Bus error while deallocating char**

2004-08-11 Thread Desenvolvimento 3
ter] != NULL) MemPtrFree(pVar[counter]); } MemPtrFree(pVar); pVar = NULL; } -Mensagem original- De: Merav Rubinstein [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 11 de agosto de 2004 10:14 Para: Palm Developer Forum Assunto: Bus error wh

Bus error while deallocating char**

2004-08-11 Thread Merav Rubinstein
In the handleEvent, when frmCloseEvent occures I deallocate some char** and I get a bus error. Do you have experience in this kind of problem? Thank you in advanced. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Bus error exception

2004-07-07 Thread Gaurav Mengi
Hi friends, When i try to port my Prog from code warrior into the treo 270 device for debugging it shows me the error "Bus error Exception at 0x1000859c(TrapDispatcher)." Any pointers regarding that will be highly appreciated... Gaurav Mengi

Re: BUS Error - Using Shared Lib, Please help..

2004-07-01 Thread Dave Lippincott
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

BUS Error - Using Shared Lib, Please help..

2004-07-01 Thread Ritu Chawla
get folowing error:-- DTSGUI just read from memory location 0x1B64, 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 work

Re: "Bus Error" when init a table

2004-03-24 Thread Dave Lippincott
A Bus Error generally means you wrote too much data into a variable or wrote to an unallocated memory address. Make sure you have allocated enough memory for strings (plus NULL) and are not indexing an array beyond what was allocated. Make sure the row number you are passing exists, also check

Re: "Bus Error" when init a table

2004-03-24 Thread Manuel García Urreta
> execute "TblSetRowUsable (table, row, true)". If i remark this command, it Verify if the value of "row" in that call is not greater than the numbers of rows that you really have in your table Manuel -- For information on using the Palm Developer Forums, or to unsubscribe, please see htt

...memory location 0x1C84FFFE, causing a bus error...

2004-03-24 Thread Ai Lee Tang
hi all, I have problem to run the following source code. It stopped at "FldSetTextHandle(fld,customerH)". The error message is "..A bus error means that the application a memory location that is not in RAM or ROM, nor corresponds to a memory-mapped hardware register" i

"Bus Error" when init a table

2004-03-23 Thread Ai Lee Tang
hi all, I converted my application from OS3.5 to OS5.0 using Code Warrior R6. After converting it, when i tried to run it on emulator, i got an error message. The message is " just read from memory location 0x1C84FFFE, causing a bus error. a bus error means that the application acces

Bus Error calling CategorySelect

2004-02-20 Thread Ted Pederson
They worked for a long time, but now I get bus error in LstSetListChoices, which is called by CategorySelect. I verified that the refNum, name, and current form are all valid. This worked until I edited the categories App Info String List in constructor. I removed a category and renamed the other 2.

BUS ERROR

2003-12-24 Thread Dhanashri
Hello All, This is very important and urgent. We have written a serial driver which sits on the Serial Manager for Palm OS 4.1 and 5.x. But we are getting this fatal error quite frequently --> "Bus Error - Connect to Palm Debugger". What are the conditions when this error is reprod

Bus Error -Connect to Debugger

2003-12-13 Thread Marianne
Hello All , When do you get this error : "Bus Error - Connect to Debugger" ?? The system resets after this . Please help asap, Thanks in advance , Marianne. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: bus error when table custom draw routine is modularized

2003-08-22 Thread Dave Lippincott
want such as am/pm or seconds. Change Char strTime[6]; to Char strTime[timeStringLenght]; and I'll bet the bus error will stop. - Original Message - From: "David Beers" <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Thursday

Re: bus error when table custom draw routine is modularized

2003-08-21 Thread David Beers
e null) in the string but when I "do the right thing" and use timeStringLength as the buffer size, all is well. Thanks big guy! :) David - Original Message - From: "David Beers" <[EMAIL PROTECTED]> To: "David Beers" <[EMAIL PROTECTED]> Sent: Thurs

Re: bus error when table custom draw routine is modularized

2003-08-21 Thread Ben Combee
d from the table callback out to the drawing functions. This function didn't cause problems when it was called from inside the callback routine, but if it's called from the drawing functions I get a bus error when the calling function returns control to the table callback routine. OK, so

bus error when table custom draw routine is modularized

2003-08-21 Thread David Beers
he drawing functions. This function didn't cause problems when it was called from inside the callback routine, but if it's called from the drawing functions I get a bus error when the calling function returns control to the table callback routine. static Char * SecondsToString(Char *str

Re: one shared lib - works, two - BUS Error ???

2003-07-28 Thread Ben Combee
same tool, use the same technique to alter the string variables but get a Bus Error. I get the bus error in the instance, the function of the library is called, though i was able to open and close it. Even if I have the function to do nothing the Bus Error happens. Can't I use the Wizard when

one shared lib - works, two - BUS Error ???

2003-07-28 Thread Mark Hirche
the string variables but get a Bus Error. I get the bus error in the instance, the function of the library is called, though i was able to open and close it. Even if I have the function to do nothing the Bus Error happens. Can't I use the Wizard when using multiple shared libraries ? Where i

Re: bus error

2003-07-10 Thread Dave Lippincott
Bus error is like a GPF on your PC. Its likely your app wrote to an invalid memory location or over bounded a variable accidentally. Look at your code in the general area of the bus error and see if you copied too many characters into a string or wrote data into an invalid pointer. Think of a

bus error

2003-07-10 Thread acky
Hi: everybody,i 'd need your help.i encouter "bus error" .i'd like to know what has caused this problem and how can i solve this problem.Can someboy explain the "multisegment code" for me ? -- For information on using the Palm Developer Forums, or to

Re: Best way to find a "bus error" bug? [USING POL]

2003-07-01 Thread Dave Lippincott
Look at the lines leading up to the BE, it may not be the popup trigger. - Original Message - From: <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Tuesday, July 01, 2003 2:17 PM Subject: Re: Best way to find a "bus error" bug? [U

Re: Best way to find a "bus error" bug? [USING POL]

2003-07-01 Thread palm
On Tue, 1 Jul 2003, Dave Lippincott wrote: > Could you be copying too many characters into the trigger label? 95% of the > time a bus error is due to copying bytes into a string or other variable, > structure, string, etc. than were allocated. It is happening as soon as I click an

Re: Best way to find a "bus error" bug? [USING POL]

2003-07-01 Thread Dave Lippincott
Could you be copying too many characters into the trigger label? 95% of the time a bus error is due to copying bytes into a string or other variable, structure, string, etc. than were allocated. - Original Message - From: <[EMAIL PROTECTED]> To: "Palm Developer Forum" &

Re: Best way to find a "bus error" bug? [USING POL]

2003-07-01 Thread palm
I forgot to mention. It works fine on Palm 5. It only crashes on Palm 4. On Tue, 1 Jul 2003 [EMAIL PROTECTED] wrote: > > Hello all, > > I am getting "PMoT v1.0 (my program) just read from memory location > 0x2F0A2067, causing a bus error. > > What's the b

Best way to find a "bus error" bug? [USING POL]

2003-07-01 Thread palm
Hello all, I am getting "PMoT v1.0 (my program) just read from memory location 0x2F0A2067, causing a bus error. What's the best way to debug it. When I go through the debugger it drops down to assembly level code.. This is crashing on a popuptrigger trying to open. I have v

Re: How do one locate the cause for this Bus error?

2003-06-24 Thread Hal Mueller
Have you tried a Gremlins run, with minimization applied afterward? Just the ticket for mysterious, hard to reproduce failures: apply brute force! -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: How do one locate the cause for this Bus error?

2003-06-24 Thread wterreblanche
data in order to recover POSE to a workable state. And my app relies on several database files that needs to be loaded each time before I can commence testing. Werner --- In [EMAIL PROTECTED], "Dave Lippincott" <[EMAIL PROTECTED]> wrote: > > A "bus error" means

Re: How do one locate the cause for this Bus error?

2003-06-23 Thread Ben Combee
At 11:54 AM 6/22/2003, Werner Terreblanche wrote: My app has suddently started giving "bus error" messages in Pose when I'm killing a CodeWarrior debug session. When I run the app (without using the debug option) then it runs fine and does not give an error. But as soon as I try

Re: How do one locate the cause for this Bus error?

2003-06-23 Thread Dave Lippincott
> A "bus error" means that the application accessed a memory location that is not in RAM or ROM, nor corresponds to a memory-mapped > hardware register.20.797: === ERROR: Not completely true. A bus error is a generic memory error. It just means the app access an area of memory it

Re: How do one locate the cause for this Bus error?

2003-06-23 Thread wterreblanche
least the problem is gone for now. Werner --- In [EMAIL PROTECTED], "Werner Terreblanche" <[EMAIL PROTECTED]> wrote: > My app has suddently started giving "bus error" messages in Pose when I'm > killing a CodeWarrior debug session. When I run the app (without

How do one locate the cause for this Bus error?

2003-06-22 Thread Werner Terreblanche
My app has suddently started giving "bus error" messages in Pose when I'm killing a CodeWarrior debug session. When I run the app (without using the debug option) then it runs fine and does not give an error. But as soon as I try to debug I get this error only at the point w

RE: How do I find what is causing a bus error at the end ofPOSE debug session?

2003-06-20 Thread Kevin OKeefe
bject: How do I find what is causing a bus error at the end of POSE debug session? I'm reasonably new to Palm programming using CW9, but I have managed to create quite a big application. Recently I started getting "bus error" messages in POSE when I exit my app from a debug sesson.

How do I find what is causing a bus error at the end of POSE debug session?

2003-06-20 Thread wt
I'm reasonably new to Palm programming using CW9, but I have managed to create quite a big application. Recently I started getting "bus error" messages in POSE when I exit my app from a debug sesson. The strange thing is that the bus error message only seems to happen after t

Re: bus error building (and drawing) dynamic list

2003-06-16 Thread Brian Preston
gt; Make sure you allocate memory for the NULL that will terminate the string. > Code above has not been compiled or debugged, but should serve for an > example. > > Jeff > > > -----Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf

RE: bus error building dynamic list

2003-06-14 Thread Jeff Wheeler
Behalf Of Jeff Wheeler Sent: Saturday, June 14, 2003 7:35 AM To: Palm Developer Forum Subject: RE: bus error building dynamic list Your error isn't related to the lists at all, but rather to incorrect use of pointers and memory allocations. Your memory allocation is wrong or incomplete.

RE: bus error building dynamic list

2003-06-14 Thread Jeff Wheeler
Sent: Friday, June 13, 2003 4:45 PM To: Palm Developer Forum Subject: bus error building dynamic list I'm trying to build my first dynamic list. 'Dynamic' might be an exaggeration, I'm simply trying to build a list of numbers 1 through x, where x's max value is 10, and

bus error building dynamic list

2003-06-13 Thread Brian Preston
I'm trying to build my first dynamic list. 'Dynamic' might be an exaggeration, I'm simply trying to build a list of numbers 1 through x, where x's max value is 10, and x is randomly determined. The error occurs at the first StrCopy. What am I doing wrong? I'm also not sure if I need 3 chars for eac

FW: Bus error reading db - Mea culpa: apologies

2002-12-12 Thread Jan Bergquist
I have to -blush- apologize for wasting your time... My 'bus error' was caused by one of the most common C programming mistakes: moving an element outside the boundaries of an array. I had failed to check properly when I sorted elements into the array, and consequently moved the last

Bus error reading db

2002-12-12 Thread Jan Bergquist
(somewhere between 0 and 100 records). The error message from Palm OS Emulator is: Programx just read from memory location 0x048E00CA, causing a bus error. The line of code where the error appears: recordH = DmQueryRecord( gItemDB, i); recordH is MemHandle, i is UInt16 The loop also contains

Re: Memory Bus Error while reading form a database

2002-12-11 Thread Hal Mueller
At 6:12 PM + 12/11/02, mlv srinivas wrote: mh = DmQueryRecord( db, index ); pText = (char*)MemHandleLock(mh); WinDrawChars(pText,StrLen(pText),width,height); height=height+10; MemPtrUnlock( pText ); DmReleaseRecord( db, index, true ); It would be easier to figure this out if you had told us

Memory Bus Error while reading form a database

2002-12-11 Thread mlv srinivas
m calling in FrmInit(), I'm getting the following error "Read from memoory location 0X55561, causing a Bus Error." Please any one help. Thanks in Advance Srini _ The new MSN 8: smart spam protection and 2 month

Re: "Bus error" while executing multisegment application

2002-11-15 Thread Ben Combee
At 00:15 2002-11-16 +0100, you wrote: Hallo. I link my project in Code Warrior 8 witch was created in older version. While linking there is no unusual warnings but when I execute program it couse bus error. Can it be coused becouse of wrong divided sources into segments or something like that

"Bus error" while executing multisegment application

2002-11-15 Thread Michal Rizek
Hallo. I link my project in Code Warrior 8 witch was created in older version. While linking there is no unusual warnings but when I execute program it couse bus error. Can it be coused becouse of wrong divided sources into segments or something like that? If i do the same with smaller project it

Re: StrPrintF() & Bus Error

2002-10-26 Thread paul
hiya, I get the a bus error with this also: StrPrintF ( buffer, "%2d", i ); basically all i want is that if i is a single digit, that there be a space (id rather not have a zero in front if possible). thanks, paul "Philip Sheard" <[EMAIL PROTECTED]> wrote in me

Re: StrPrintF() & Bus Error

2002-10-26 Thread Philip Sheard
> I can't seem to get a bus error with the following: > > char buffer[10 + 1]; > int i = 1; > > StrPrintF ( buffer, "% 2d", i ); > WinPaintChars ( buffer, 2, 85, 22 ); Is that a space after the percent sign? > I only actually get the bus error when WinPaint

StrPrintF() & Bus Error

2002-10-26 Thread paul
I can't seem to get a bus error with the following: char buffer[10 + 1]; int i = 1; StrPrintF ( buffer, "% 2d", i ); WinPaintChars ( buffer, 2, 85, 22 ); I only actually get the bus error when WinPaintChars is called (or even if i replace it with printf) If however I c

RE: PLEASE help! - hotsync bus error & MemoryMgr error

2002-09-24 Thread Blake Winton
> >I can't for the life of me figure out why this is being > >caused, since this occurs as HotSync ends. In other > >words, I have not even launched my app, how can it be > >reading anything?! I think you need to read the manuals a little more. But Ben gave you the answer, so maybe you don't. >

Re: hotsync bus error: Found the problem

2002-09-23 Thread Palm Guy
;Palm Developer Forum" <[EMAIL PROTECTED]> >To: "Palm Developer Forum" <[EMAIL PROTECTED]> >Subject: Re: PLEASE help! - hotsync bus error & MemoryMgr error >Date: Mon, 23 Sep 2002 20:54:24 -0500 > >At 12:52 AM 9/24/2002 +, you wrote: >>I&#x

Re: PLEASE help! - hotsync bus error & MemoryMgr error

2002-09-23 Thread Ben Combee
At 12:52 AM 9/24/2002 +, you wrote: >I'll try this but: >How does one set sysAppLaunchCmdSyncNotify as the launch code? I can't >find this in CW. >Also, the CW debugger is a bit of a mystery to me. How exactly doI step >thru the code? The launch code is a setting under Edit/Preferences/Palm

Re: PLEASE help! - hotsync bus error & MemoryMgr error

2002-09-23 Thread Palm Guy
quot;Palm Guy" <[EMAIL PROTECTED]> >Reply-To: "Palm Developer Forum" <[EMAIL PROTECTED]> >To: "Palm Developer Forum" <[EMAIL PROTECTED]> >Subject: Re: PLEASE help! - hotsync bus error & MemoryMgr error >Date: Tue, 24 Sep 2002 00:52:23 +

Re: PLEASE help! - hotsync bus error & MemoryMgr error

2002-09-23 Thread Palm Guy
um" <[EMAIL PROTECTED]> >To: "Palm Developer Forum" <[EMAIL PROTECTED]> >Subject: Re: PLEASE help! - hotsync bus error & MemoryMgr error >Date: Mon, 23 Sep 2002 19:36:37 -0500 > >At 12:27 AM 9/24/2002 +, you wrote: >>I am still trying to deb

Re: PLEASE help! - hotsync bus error & MemoryMgr error

2002-09-23 Thread Ben Combee
of the HotSync operation, I get an error that >looks something like this: > >"Fatal error; Application has just read from memory location >0x826C2, which is not in RAM or ROM, casuing a bus error." > >I can't for the life of me figure out why this is being cause

Re: PLEASE help! - hotsync bus error & MemoryMgr error

2002-09-23 Thread Palm Guy
; >To: "Palm Developer Forum" <[EMAIL PROTECTED]> >Subject: Re: PLEASE help! - hotsync bus error & MemoryMgr error >Date: Mon, 23 Sep 2002 17:33:33 -0700 > >>I can't for the life of me figure out why this is being caused, since this >>occurs as HotSync ends

Re: PLEASE help! - hotsync bus error & MemoryMgr error

2002-09-23 Thread Steve Mann
>I can't for the life of me figure out why this is being caused, >since this occurs as HotSync ends. >In other words, I have not even launched my app, how can it be >reading anything?! Your application may be responding to a sysAppLaunchCmdSyncNotify launch code which is sent to each applicati

PLEASE help! - hotsync bus error & MemoryMgr error

2002-09-23 Thread Palm Guy
like this: "Fatal error; Application has just read from memory location 0x826C2, which is not in RAM or ROM, casuing a bus error." I can't for the life of me figure out why this is being caused, since this occurs as HotSync ends. In other words, I have not even launched my a

Re: Bus Error Exception

2002-09-18 Thread Steve Janaway
Martin Elzen wrote: > > 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

Re: Bus Error Exception

2002-09-18 Thread Martin Elzen
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. Ha

Bus Error Exception

2002-09-18 Thread Steve Janaway
Hi all, 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 ? regards Steve -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: handle at 0x8000187C causes PrvPtrFree to access 0x0000005D, address bus error

2002-08-08 Thread Lally Singh
Ls :-) > > - Original Message - > From: "Lally Singh" <[EMAIL PROTECTED]> > To: "Palm Developer Forum" <[EMAIL PROTECTED]> > Sent: Wednesday, August 07, 2002 12:58 PM > Subject: Re: handle at 0x8000187C causes PrvPtrFree to access 0x000

Re: bus error in Emulator when adding Connection profile

2002-05-17 Thread Dave Lippincott
um" <[EMAIL PROTECTED]> Sent: Friday, May 17, 2002 4:51 AM Subject: bus error in Emulator when adding Connection profile > Can anyone tell me why the following code would cause a bus error in POSE > when the added connection is viewed in the Connection Preferences Panel. The >

bus error in Emulator when adding Connection profile

2002-05-17 Thread Gearoid Murphy
Can anyone tell me why the following code would cause a bus error in POSE when the added connection is viewed in the Connection Preferences Panel. The AddMyProfile function is taken directly from the documentation on CncAddProfile in the kb. // found in documentation for CncAddProfile void

Re: Applications (3.0) bus error, followed by codewarrior IDE crash

2002-05-09 Thread Mark Andrews
Hi, I get this error every time I write to a label or a text field and I put too much data into it. If you create a label or text field, you have to pad the field with spaces in the consctructor at built time. Otherwise, it will give you a bus error and crash CW. Regards, Mark "Ritesh

Re: Applications (3.0) bus error, followed by codewarrior IDE crash

2002-04-19 Thread Ben Combee
In article <84284@palm-dev-forum>, [EMAIL PROTECTED] says... > > More over the problem that really is baffling is that the Codewarrior IDE > also crashes every time i see that Bus error that i mentioned in the first > mail. I have also used the 3.4 Emulator which also de

Re: Applications (3.0) bus error, followed by codewarrior IDE crash

2002-04-19 Thread Dave Lippincott
Is the app responding to other launch codes? - Original Message - From: "Waseem Anis" <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Friday, April 19, 2002 4:08 AM Subject: RE: Applications (3.0) bus error, followed by codewarrio

RE: Applications (3.0) bus error, followed by codewarrior IDE crash

2002-04-19 Thread Waseem Anis
tried with a new rom yet ?? -Original Message- From: Ritesh Sinha [mailto:[EMAIL PROTECTED]] Sent: Friday, April 19, 2002 2:16 PM To: Palm Developer Forum Subject: Re: Applications (3.0) bus error, followed by codewarrior IDE crash More over the problem that really is baffling is that

Re: Applications (3.0) bus error, followed by codewarrior IDE crash

2002-04-19 Thread Ritesh Sinha
More over the problem that really is baffling is that the Codewarrior IDE also crashes every time i see that Bus error that i mentioned in the first mail. I have also used the 3.4 Emulator which also detects memory leaks. Just for the purpose of finding if my app has any leaks. Havent tried the

RE: Applications (3.0) bus error, followed by codewarrior IDE crash

2002-04-19 Thread Waseem Anis
t: Re: Applications (3.0) bus error, followed by codewarrior IDE crash Ritesh, Check for some invalid pointers. See that all the pointers your are trying to access are valid. This errro generally occurs when you try to read or write at some invalid memory pointers On Fri, 19 Apr 2002 Ritesh

Re: Applications (3.0) bus error, followed by codewarrior IDE crash

2002-04-19 Thread Raghvendra Singh
0 with Emulator 3.2 ( and 3.4 too ). >When i debug >an application , The codewarriror downloads it, and before >starting my app >it gives me this message: > >"Applications (3.0) just read from memory location 0xFF435B00 >causing a bus >error. >a bus error means.

Applications (3.0) bus error, followed by codewarrior IDE crash --- Part 2

2002-04-19 Thread Ritesh Sinha
Well , my story of troubles doesnt end there, It has more to it. Now I restart my IDE and the POSE. And the Debugging starts with "Applications (3.0) called sysFatalAlert with the message MemoryMgrNew.c line 4866 Chunk underlocked" I know what that means, My application hasnt even started, and the

RE: Applications (3.0) bus error, followed by codewarrior IDE crash

2002-04-19 Thread Waseem Anis
, April 19, 2002 1:15 PM To: Palm Developer Forum Subject: Applications (3.0) bus error, followed by codewarrior IDE crash Hi gurus, I am using Codewarrior 6.0 with Emulator 3.2 ( and 3.4 too ). When i debug an application , The codewarriror downloads it, and before starting my app it gives me this

Applications (3.0) bus error, followed by codewarrior IDE crash

2002-04-19 Thread Ritesh Sinha
Hi gurus, I am using Codewarrior 6.0 with Emulator 3.2 ( and 3.4 too ). When i debug an application , The codewarriror downloads it, and before starting my app it gives me this message: "Applications (3.0) just read from memory location 0xFF435B00 causing a bus error. a bus error

Re: hi joe,same old errors"address error" and "bus error"

2002-04-02 Thread Joe
--- siddharth saxena <[EMAIL PROTECTED]> wrote: > i tried aking changes you suggested. but it gives the > same old errors . > i.e."bus error" and "address error". ... > case showbutton1: > { > char *buffer; ... > while(! FileEOF(streamshow)) > {

hi joe,same old errors"address error" and "bus error"

2002-04-02 Thread siddharth saxena
hi , i tried aking changes you suggested. but it gives the same old errors . i.e."bus error" and "address error".sometime it gives errors like"the application just wrote to an unallocated chunk of memory" my code is 39k. so i made a sample code with these functional

Re: "ADDRESS ERROR" and "BUS ERROR" in simple file streaming api !!!

2002-03-30 Thread Joe
--- siddharth saxena wrote: > i have to use database for data storage and it gives > me a problem .actually, i wanna store data in a > database permanently.but after i quit my application > and reinvoke it i lose all my data. > > Char *textp; > > textp=FldGetTextPtr(fldp); > len=FldGetTextLength

"ADDRESS ERROR" and "BUS ERROR" in simple file streaming api !!!

2002-03-30 Thread siddharth saxena
special like archive the records or do i have to use the file streaming api. i tried using the file api and a very simple and basic code is giving me "BUS ERROR & ADDRESS ERROR". i am including my code snippet for u to see: //to save data case savebutton: { Err *errp; Char *textp; F

Re: Bus error in FrmCloseAllForms?

2002-03-27 Thread Ben Combee
s the call stack in the debugger at the moment of the error: > (PalmOS > > >3.5 debug ROM running as a color IIIC device) > > > > > >0x10C9EAF2 (__Startup__) > > >0x10C9F10E (PilotMain) > > >0x10C9EBC8 (UIAppShellMain) > > >0x10C9EF8C (PrvAppLaunchLo

Re: Bus error in FrmCloseAllForms?

2002-03-26 Thread Darren DeLoach
;0x10C9F10E (PilotMain) > >0x10C9EBC8 (UIAppShellMain) > >0x10C9EF8C (PrvAppLaunchLoop) > >0x10C0E4B0 (PrvCallWithNewStack) > >0x5AB4C () > >0x5AA34() > > > >Why would the OS cause itself a bus error? What might be happening in my > >app to have this

Re: Bus error in FrmCloseAllForms?

2002-03-26 Thread Keith Rollin
ack) >0x5AB4C () >0x5AA34() > >Why would the OS cause itself a bus error? What might be happening in my >app to have this outcome? > > >"Keith Rollin" <[EMAIL PROTECTED]> wrote in message >news:81593@palm-dev-forum... >> >> Darren, >> >

Re: Bus error in FrmCloseAllForms?

2002-03-26 Thread Darren DeLoach
d the OS cause itself a bus error? What might be happening in my app to have this outcome? "Keith Rollin" <[EMAIL PROTECTED]> wrote in message news:81593@palm-dev-forum... > > Darren, > > Are you basing your statement that the error occurs inside > FrmCloseAllFo

Re: Bus error in FrmCloseAllForms?

2002-03-26 Thread Darren DeLoach
Good question. The FrmCloseAllForms() is the last executed statement in the AppStop() function, which falls back to an unaltered StarterPilotMain(), which falls out to an unaltered PilotMain(). So FrmCloseAllForms() is the last executed statement in the app, before the stack starts unwinding to

Re: Bus error in FrmCloseAllForms?

2002-03-26 Thread Keith Rollin
tem Call 0xA256: |HwrIRQ6Handler. >3410.935 (15649): --- System Call 0xA3C4: |TargetCfgRoutines. >3410.935 (15649): --- System Call 0xA396: |-|-|WinPopDrawState. >3411.045 (15649): === ERROR: >**** >**** >3411.045 (1564

Bus error in FrmCloseAllForms?

2002-03-26 Thread Darren DeLoach
1.02) just read from memory location 0x02000000, causing a bus error. A "bus error" means that the application accessed a memory location that is not in RAM or ROM, nor corresponds to a memory-mapped hardware register. 3411.045 (15649): === ERROR: -- For information on using the Pal

  1   2   3   >