[racket] mysterx-mzlib<->ffi/com

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Wed Aug 15 11:31:56 EDT 2012

Can you tell me more about "WMOBrws.ServerBrower" and its
"TakeCurrentServer" method? Is the method expected to return a string?
And `CurServer' below is bound to a #<cpointer> value?

Thanks!

At Wed, 15 Aug 2012 14:45:22 +0200, heraklea at gmx.de wrote:
> Hello friends,
> 
> after my upgrade to 5.3 I have an error in this code segment:
> 
> (define SRV (com-create-instance "WMOBrws.ServerBrowser"))
> (define CurServer (com-invoke SRV "TakeCurrentServer"))
> (define SESSION (com-create-instance "Session.Test" CurServer))
> 
> in 5.2.1 with misterx I have no problem. After 5.3 installation using the 
> ffi/com I get the following error:
> 
> ptr-set!: given value does not fit primitive C type
>   C type: _string/utf-16
>   given value: #<cpointer>
> 
> It dont accept the CurServer variable. Do I have to cast the varibale? When yes 
> how can I achieve this?
> 
> Yours,
> ____________________
>   Racket Users list:
>   http://lists.racket-lang.org/users

Posted on the users mailing list.