昨天晚上想把DIOCP_V5 服务端改为 支持 firdac fdmemtable 数据集,结果 返回 客户端,客户端加载不了报错
干,看数据长度一模一样,怎么回事,百度半天没结果
后来直接 FDMemTable1.SaveToStream(mst, sfBinary);
紧接着 FDMemTable2.LoadFromStream(mst, sfBinary);
干,还是报错
今早,发现,原来非常简单
FDMemTable1.SaveToStream(mst, sfBinary);
mst.positon := 0;//就尼玛缺这句
FDMemTable2.LoadFromStream(mst, sfBinary);