[Gambas-user] Issues when writing and reading structures

Brian G brian at westwoodsvcs.com
Wed Mar 22 16:01:38 CET 2023


Attached is clip of running in ide 

"Failure is the key to success; 
each mistake teaches us something" .. Morihei Ueshiba 
Brian G 

----- On Mar 21, 2023, at 9:35 PM, Brian G <brian at westwoodsvcs.com> wrote: 

> Are you using 3.18.1

> --
> Thanks
> Brian G
> Tuesday, 21 March 2023, 03:02PM -07:00 from T Lee Davidson [
> mailto:t.lee.davidson at gmail.com | 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 |
>> http://gambaswiki.org/wiki/doc/netiquette ] ]----

> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230322/af830fa9/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: structfun-2023-03-22_07.58.44.mp4
Type: video/mp4
Size: 285734 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230322/af830fa9/attachment-0001.mp4>


More information about the User mailing list