![]() I believe it has to do with the initialization of the new object but I can not understand the problemĬlass Function J2rec(const a: string var c:T):boolean Ĭlass function Trec4Json.rec2J(a: T): string // Record to Json StringĬlass function Trec4Json. The opposite, the de-serialization gives me an error " Internal: Cannot instantiate type. This process is called Serialization while the opposite process (create an objects from a string rapresentation) is called Deserialization. Your memory stream is positioned incorrectly, fix it like.the object is Serialize, but it cannot be deserialized because exception is raised complaining that end of stream is encountered before parsing. ![]() I wrote the following code that works ok only for the serialization and to be honest, I have not tested having records with class objects. Hi The following code is serializing an object to string and deserializing object from string, but things go wrong in the deserialization process. I need to serialize and de-serialize different records types.
0 Comments
Leave a Reply. |