[Gambas-user] Segmentation Fault - Deserialization

T Lee Davidson t.lee.davidson at gmail.com
Thu Jul 16 23:09:05 CEST 2020


On 7/16/20 4:58 PM, Gianluigi wrote:
> I read it here:
> http://gambaswiki.org/wiki/lang/write

Ah, thank you.

That page indicates that it can also be written as ClassName:
Write #Stream, Object As < ObjectClass >
Write #Stream, Object As Object
Write #Stream, Object As Variant

And also says, "If you read the object later by using 'As Variant' or 'As Object', you have to write it by using 'As Variant' or 
'As Object'." That would seem to indicate that if is is written 'As < ObjectClass >', it should be read 'As < ObjectClass >'. 
But that causes a SegFault.

At least Matthew now has a workaround.


-- 
Lee


More information about the User mailing list