I am having a strange problem in one of my latest projects, and I am
running out of ideas on what could be going on.  I have limited the
problem down to the following lines of code:

UInt32 calcIncVal()
{
        UInt32 incval=0;
        UInt32 Magic=10616832; //Value
        UInt32 MixFreq=428;
        incval=Magic/MixFreq; //incval should now contain 24805

        return(incval);
}

        The problem occurs on the second to last line.  incval should contain
24805 after this line executes, Instead, I get the error
"i:\banzai\arm\core\emul68k\srcslowemu\run68k.c, Line:3109, Invalid read
from FFFFFF64" in the simulator.

        As you can see, the variables are all local variables declared within the
function, and all I am trying to do is simple integer division.  Any
ideas on what is going on here?  Any help would be greatly appreciated.

Regards,
William Osborne
[EMAIL PROTECTED]

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to