Derik, from what I can see of your posts, you have one or more bugs
in your code that is causing the problem you are seeing.  The crash in the
Palm OS is most likely a symptom not the cause of your problem.

My suggestion is you start commenting out large blocks of code, until
the problem goes away, and then start uncommenting smaller blocks
of code until it reappears.   This will eventually isolate your problem
down to one line of code, probably an API call.  Then use the debugger,
reread the documentation, and/or revisit us all with a question on that line
of code.

When I've run into this kind of problem, this approach ultimately is the
only one that works.    These are the kind of problems that the debugger
(by itself) or stack traces simply don't solve.   And yes I know its a lot
of work and a real pain in the *** to do this, but sometimes you just
have to beat on a problem until you kill it.

Roger Stringer
Marietta Systems, Inc.
Creators of the Marietta PDE (tm) RAD software for the Palm OS (tm)

----------------------------------------------------------------------

>Subject: Re: Consistent crashes in PalmOS calls
>From: "D. DeVecchio" <[EMAIL PROTECTED]>
>Date: Wed, 26 Apr 2000 17:26:48 -0700

>Ben Combee,

>On Wed, 26 Apr 2000 16:18:07 -0500, you said:

>> 
>> The really useful part is in the other two panes -- one shows all the local
>> variables active before the function call, and the other shows where in the
>> source the call occured. 

>the only problem is, it only shows the place in YOUR program where there
>is a crash.  It only shows YOUR variables.  Since the problem seems to
>be inside PalmOS call itself these windows don't tell me anything except
>what the variables are just before the call.  Those I have checked again
>and again. They are valid.  But for some dumb reason it still crashes in
>the OS.

>>How in the world can I crash the OS as long as I am passing valid
>>pointers?  Why does it only crash on my poor helpless program.  Is there
>>some way to use the stack window to find out if the pointer is being
>>safely passed to the API function that I am calling?

>Is there some way to get a hold of the source code for the PalmOS call
>in question so I could find out exactly which part of it is messing up?

>derik      
 
>                     email:  [EMAIL PROTECTED]

>                     WWW:    http://www.pobox.com/~derik



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to