I am using CodeWarrior R6 on NT with SDK 3.5, debugging with POSE 3.0a7
using Palm VII EZ Debug ROM.
I have been trying to use ErrTry/ErrCatch to perform cleanup when errors
occur, but I find that the ErrCatch block seems to reallocate the local
variables, obscuring the originals. A simple example:
void MySub()
{
Int16 a = 1;
Int16 b;
ErrTry
{
a = 2;
b = 3;
ErrThrow(0);
}
ErrCatch(err)
{
// Here, a is now 1, and b is garbage, as if they had been
reinitialized
} ErrEndCatch
}
Can someone tell me what I am doing wrong? I would really appreciate your
help!
Craig Torell
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/