"Steve Mann" <[EMAIL PROTECTED]> wrote in message
news:62478@palm-dev-forum...
>
> >When i come to this line in the code:
> > recordH = DmQueryRecord(SiteDB, 0);
> >in the Debugger variables window i see "Register not available"
>
> Because of the way the compiler optimizes, at the time the error
> occurs, those values are not available. One way to get around this
> is, once you realize there's a problem with a particular piece of
> code, put in a test for the possible error condition prior to the
> code that blows up, and look at the values.
The other solution would be to disable optimizations and recompile your
application while you're debugging. In CodeWarrior, you do this by
going to the Global Optimizations panel and moving the slider to level
0.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/