opensubscriber
   Find in this group all groups
 
Unknown more information…

s : speech-dev@lists.apple.com 31 December 2005 • 1:56AM -0500

Re: Calling DisposeSpeechChannel crashes under 10.4.2
by Matthias Neeracher

REPLY TO AUTHOR
 
REPLY TO GROUP





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

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.