This is just an example. But every thing works fine if i use + instead of *


> IMHO, it sounds like that UserDapaP ( and then data ) pointing to some
> invalid address.
> Have you checked value of "data" before running that calculation line ?
> 
> > Hi,
> >
> > Do you know why i have the following error :
> >
> > I;\Ripple\ARM\Core\Emul68K\SrcSlowEmu\Run68K.c,
> > Line:3109, Invalid read from FFFFCDA8.
> >
> > using this callback function for my stream :
> >
> > Err sndCallback(void* UserDataP, SndStreamRef stream, void* bufferP,
> UInt32
> > frameCount) {
> >  Ct *data = (Ct *)UserDataP;
> >
> >   int l = data->length * data->pos;    // the debugger stops here
> >   MemSet(bufferP, frameCount, 0);
> >  }
> >  return errNone;
> > }
> >
> > It seems that i cant' multiply length and pos.
> >
> > Any idea ? Is this a bug in Simulator ? Does it also occured on real
> device
> > ?
> > Please help !!! :_(
> > thanks
> > Chris
> >

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

Reply via email to