Mark Cave-Ayland wrote:
[...] On first glance, it looks as if cstrlen is returning 0 which is probably stopping the method name from being set correctly.
That code too is completely wrong. The arguments for $call-method are ( adr len ihandle ), and it appears to be passing ( ihandle adr len ).
It looks like $call-method is doing the right thing, at least - which means it chokes trying to use the "len" as an ihandle.