On Dec 29, 2005, at 5:09 PM, Chilton Webb wrote:
> I have noticed that calling DisposeSpeechChannel brings about a
> crash in 10.4.2. Is this a known bug?
>
> Here's my code...
>
> err = NewSpeechChannel(NULL,&n);
> err = SpeakBuffer (n,s,strlen(s),0);
> DisposeSpeechChannel(n);
>
> Commenting out the DisposeSpeechChannel line makes it run just
> fine. Using the code as-is crashes.
Yes, this is a known bug, if the code is written exactly as above
(i.e. dispose the channel almost immediately after starting speech).
Try either
- Inserting a short time delay before disposing the channel (A few
100ms should be enough, IIRC) or
- Waiting with the disposing until SpeechBusy no longer indicates
that the channel is busy.
We're aware of this bug, have a fix, and are evaluating delivery
vehicles to release the fix.
> Also, calling SpeakString at all crashes as well.
This could be a manifestation of the same bug IF you're calling
SpeakString multiple times in short sequence. If not, I'd appreciate
an example.
Matthias
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Speech-dev mailing list (
Speech-dev@list...)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/speech-dev/subscriber%40opensubscriber.com
This email sent to
subscriber@open...
opensubscriber is not affiliated with the authors of this message nor responsible for its content.