On Nov 4, 2006, at 9:17 AM, Christian Miller wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Nov 3, 2006, at 9:57 PM, Charles Yeomans wrote:
Declare Function NewSpeechWordUPP Lib "Carbon" (userRoutine as Ptr) as Ptr Declare Function SetSpeechInfo Lib "Carbon" (chan as Integer, selector as OSType, speechInfo as Ptr) as Short//???

err = SetSpeechInfo(iChannel, "wdcb", NewSpeechWordUPP (AddressOf SpeechProc))

err is 0. The crash occurs when the "SpeechProc" is called by the library. I get a similar crash on another Callback telling me that the library is done speaking.

Post the method prototype of your callback function and let's take a look at that.

Hi Charles, the prototype is below along with the original C prototype:

  'void MySpeechWordProc (
  'SpeechChannel chan,
  'long refCon,
  'unsigned long wordPos,
  'unsigned short wordLen
  ');

Sub SpeechProc(chan as integer, refCon as integer, wordPos as integer, wordLen as integer)

End Sub


The first thing I'd try is to change the type of wordLen to Short.

Charles Yeomans
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to