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 ?

----- Original Message ----- 
From: "Chris Apers" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Wednesday, December 17, 2003 9:50 AM
Subject: Big Sound Stream problem


> 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/
>


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

Reply via email to