There is a known issue -- the x86 calling conventions differ from the  
PPC conventions.  This is my first guess as to the problem.

Charles Yeomans


On Mar 18, 2007, at 1:08 PM, Marcel wrote:

> Hello!
>
> Since I compile & run my RB app on an Intel machine (RB 2006r4), the
> Cocoa spellchecker code from Charles (iDeclare) is crashing whenever
> I try to call objc_msgSend_stret. (see code below)
>
> Is there a known issue on Intel machines I have missed?
> Any clue?
>
> Best,
> Marcel
>
>
>    #if TargetMachO
>      dim aSelector as Integer
>      dim aCFText as CFString
>      dim aNSRange as MemoryBlock
>
>      Const cNull = 0
>      Const cSizeOfNSRange = 8
>
>      Declare Sub objc_msgSend_stret Lib CocoaLib (stretAddr as Ptr,
> aReceiver as Integer, aSelector as Integer, aCFText as Integer,
> aStartOffset as Integer)
>
>      aSelector = Cocoa.Selector("checkSpellingOfString:startingAt:")
>      aCFText = new CFString("Test")
>      aNSRange = new MemoryBlock(cSizeOfNSRange)
>
>      objc_msgSend_stret(aNSRange, GetNSSpellChecker(), aSelector,
> aCFText, 0)
> #endif
>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to