> > TBufDataset doesn't support ftVarBytes and ftVariant. Variants are > > complex objects and aren't stored by just copying bytes. Don't use > > them with TBufDataset. > > > > Ludo > > > ... cause they have some kind of structure that describes > what kind of data the variable/field actually contains and a > pointer to memory containing the actual data? Just guessing... >
Yes, a pointer or the actual data for basic types. Sizeof(variant) is 16. Copying only 10 bytes is clearly not working, even for the simple datatypes. Ludo > Anyway, once again thanks a lot for the help, I've updated my > test code and posted http://bugs.freepascal.org/view.php?id=19930 > > Reinier > _______________________________________________ _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal