[Gambas-user] Issues when writing and reading structures
Brian G
brian at westwoodsvcs.com
Wed Mar 22 05:35:47 CET 2023
Are you using 3.18.1
--
Thanks
Brian G Tuesday, 21 March 2023, 03:02PM -07:00 from T Lee Davidson t.lee.davidson at gmail.com :
>On 3/21/23 15:57, Brian G wrote:
> When a structure containing a string is written the first byte is the length
> But when it is read back as the structure it does not use the length byte but does include the len byte into the string field.
> I am not sure if this is correct or not.
>
> p.s. is it possible to have varptr return the memory address of the structure as you can assign a pointer to a structure object.
>
> Is this correct or is it a bug, not sure? But I would like to send structured data to another client and recieve it on that side
> the follow script demonstrates:
>
>[code snipped]
>
>
> "Failure is the key to success;
> each mistake teaches us something" .. Morihei Ueshiba
> Brian G
>
>When I try to run that code in the IDE, I get a SegFault at:
> Write #f, a As Variant
>
>
>--
>Lee
>
>
>----[ http://gambaswiki.org/wiki/doc/netiquette ]----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230322/cc174ff7/attachment-0001.htm>
More information about the User
mailing list