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