VB crashes when shutting down

Last reviewed: 11/15/2001

PRB Article ID: P110109

The information in this article applies to:

  • SpeechKit 3

Symptoms

Visual Basic crashes on shutdown after running a VB application that recognizes and synthesizes using the ActiveX component.

Cause

Changing SAPI5.1 recognizer states during a callback results in thread clean up problems when terminating. For example, if the VB application synthesizes speech in a HasPhrase callback event, then recognition is suspended during playback and resumed after playback is complete.

State changes appear to create unrecoverable cleanup problems for VB.

Status

Fixed in SpeechKit 3 SR3. Since SAPI5 manages the Windows audio for the recognizer and synthesizer, the auto suspend and resume feature necessary for SAPI3, SAPI4, and SMAPI APIs is unnecessary.

In addition, the ActiveX and Delphi VCL components no longer instantiate when in development mode. The components automatically detect development or run (User) mode and instantiate only in run (User) mode. This results in less resource consumption during development and testing.

Component Formats Impacted

ActiveX and Delphi VCL components only.