Paul,
In my experience, problems like this can be caused by writing to memory
more bytes than allocated/expected. Adding the "junk" (including compiling
for debug) seems to move the instruction/argument that gets stomped, so that
your code, though modified, is not modified in a fatal manner. Without
some memory management analyzer, you will have to inspect your code for such
a mismatch.
Al
----- Original Message -----
From: "Paul Nevai" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Wednesday, December 24, 2003 10:43 AM
Subject: a Treo 600 Simulator mystery
> This is the oddest thing I ever seen.
>
> I use the Treo 600 simulator and am running a somewhat elaborate function
> which works perfectly in every possible hardware, emulator, and simulator
> known to mankind [well, I didn't test all] except on the Treo 600
simulator
> just before I do an FrmDrawForm() job, it gives the message
>
> I:\Ripple\ARM\Core\Emul68K\SrcSlowEmu\Run68K.c
> Line:2299, Null access read from 00000000
>
> BUT, here comes the juicy part. If I add the code
>
> {
> RectangleType rT;
> RctSetRectangle (&rT,0,0,0,0);RctSetRectangle (&rT,0,0,0,0);
> RctSetRectangle (&rT,0,0,0,0);RctSetRectangle (&rT,0,0,0,0);
> }
>
> just before FrmDrawForm() then it works OK. If I add one less
> RctSetRectangle() job, then the crash comes.
>
> Can any of you shed light to it please? I am very curious to see what you
can
> come up with.
>
> Thanks, PaulN [pedit etc.]
>
> P.S. How did I find out that the RctSetRectangle() job does a fix? By
pure
> accident. As a matter of fact, it seems that I could do other fixes too as
> long as enough "junk" is added right before FrmDrawForm().
>
> --
> 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/