Re: [Pharo-users] UFFI - Could not coerce arguments

2018-04-27 Thread Serge Stinckwich
On Fri, Apr 27, 2018 at 10:45 AM, Esteban Lorenzano wrote: > hi, > > it all depends on how you are declaring your types. > > here, for example you are passing > > aTF_OutputArray getHandle > > that’s a “void*” value (an ExternalAddress or ExternalData object), and in >

Re: [Pharo-users] UFFI - Could not coerce arguments

2018-04-27 Thread Esteban Lorenzano
hi, > On 27 Apr 2018, at 13:06, Ben Coman wrote: > > > > On 27 April 2018 at 17:23, Serge Stinckwich > wrote: > I would like to pass a pointer to an array of pointers to a FFI call and I > have problems

Re: [Pharo-users] UFFI - Could not coerce arguments

2018-04-27 Thread Ben Coman
On 27 April 2018 at 17:23, Serge Stinckwich wrote: > I would like to pass a pointer to an array of pointers to a FFI call and I > have problems ... > > ​I have this method: > > runOutputs: aTF_OutputArray size: anInteger > | status outvalues | > status :=

Re: [Pharo-users] UFFI - Could not coerce arguments

2018-04-27 Thread Esteban Lorenzano
hi, it all depends on how you are declaring your types. here, for example you are passing aTF_OutputArray getHandle that’s a “void*” value (an ExternalAddress or ExternalData object), and in declaration you have (if I read correctly): TF_Output * so, first question is: if TF_Output !=

[Pharo-users] UFFI - Could not coerce arguments

2018-04-27 Thread Serge Stinckwich
I would like to pass a pointer to an array of pointers to a FFI call and I have problems ... ​I have this method: runOutputs: aTF_OutputArray size: anInteger | status outvalues | status := TF_Status create. outvalues := FFIExternalArray externalNewType: 'TF_Tensor*' size: anInteger.