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



Christian
Pariahware, Inc. Custom Software
<[EMAIL PROTECTED]>
<http://www.pariahware.com>
- --
God loved you so much that He gave His only son Jesus. What have you done with God's gift?



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFFTKD8vplmRR9PMqERArF6AJ95u0dMjm7Vzm3jBK0aAWnFCHAnBACbBDU9
FK2+WCyvNHOE0d4jSvBNtaI=
=jRIU
-----END PGP SIGNATURE-----
_______________________________________________
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