[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: varptr to structs returns bad pointer value



On 3/4/25 09:48, Jussi Lahtinen wrote:


these works as expected

public sub doit()
   dataSet = alloc(sizeof(mystruct))
   mydata = dataSet
   myFunction(dataSet)  ' this works
end sub


public sub doit2()
   mydata = new myStruct
   dataSet = Object.Data(myData)
   myFunction(dataSet)  'This should also.
end sub



Jussi

Thanks Ben and Jussi,

  I guess I did not read the object interface very well, thanks for so simple a solution Ben.

I also appreciate the conversation thread, I read all and am glad to have had so much input to my question.

Again thanks.

--
~~~~ Brian

Attachment: OpenPGP_0x78BFB26402F48419.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


References:
Re: varptr to structs returns bad pointer valueBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: varptr to structs returns bad pointer valueJussi Lahtinen <jussi.lahtinen@xxxxxxxxx>
Re: varptr to structs returns bad pointer valuevuott@xxxxxxxxxxxx
Re: varptr to structs returns bad pointer valueJussi Lahtinen <jussi.lahtinen@xxxxxxxxx>