On Mon, 21 Jan 2013, Przemyslaw Czerpak wrote:
Hi,
> The real problem can appear at runtime and is caused by binary
> compatibility with older code.
> HB_SERIALIZE() gives incompatible results. It means that
> HB_DESERIALIZE() from Harbour cannot decode data encoded by
> current xHarbour HB_SERIALIZE().
> HB_SERIALIZE() is used by SQLRD so this problem is not such trivial
> because it may block migrating to new xHarbour version.
> Probably this can be resolved adding support for signatures used
> by xHarbour in serialization code. I haven't though about it
> before. I'll look at it closer and if it's possible I'll commit
> such patch to Harbour.
I've just committed it:
2013-01-21 16:36 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* harbour/src/rtl/itemseri.c
+ added support for deserialization xHarbour HB_SERIALIZE() output.
All types except codeblocks are supported. I haven't added support
for xHarbour serialized data with cyclic references. If it will be
really necessary then I can implement it.
I also added workaround for bug in xHarbour serialization code so
now Harbour correctly decodes data with LONGLONG numbers though
xHarbour cannot correctly decode its own stream.
Now Harbour can deserialize xHarbour data encoded by HB_SERIALIZE()
and stored somewhere. It can be important in migration process, i.e.
SQLRDD uses HB_SERIALIZE() to encode data in memos so now SQLRDD
port for Harbour should read old tables and decode xHarbour items
correctly. The same is for any other tool which saved HB_SERIALIZE()
output in xHarbour.
best regards,
Przemek
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
xHarbour-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xharbour-developers