On Nov 2, 2006, at 7:47 PM, Christian Miller wrote:

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

Hello. I'm trying to get my Mac app which utilizes speech Declares running on the Intel processor. I've accounted for most of the Endian issues when reading out of the memoryblock. However, if I set the Callback, the Intel version crashes quite ungracefully. If RB happens to trap the error, it throws a Stack Overflow Exception.

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.

If I run the app in Rosetta (or on a PPC Mac), there is no problem.

Ideas? I've already tried reversing the "wdcb" characters to no avail.


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

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