I have a TClientdataset instance that has been saved to a string (using the SaveToStream method).
When I load the string back into another TClientDataset instance I get an access violation in midas.dll at address 0018DDD6, read address 00000000.
Has anyone got any ideas on how to fix this problem.
I am currently running Delphi 11 Version 28.44500.8973 and Windows 10 version 22H2 OS build 19045.3570 64-bit)
To get the error, drop a TClientDataset on a form, right-click the icon and chose ‘Load from MyBase table’. The file to choose is an xml file using the above text.
When posting code or markup, you need to tell discourse what it is, to do that add a line with 3 backtics and then the language (for highlighting) and the end it with 3 backticks on a separate line
```xml
code/xml goes here
```
I formatted it for easier reading (original had no line breaks).
I will try and remember your instructions for next time.
With respect to my problem it appears that the TClientDataset that has
nested datasets can use the SaveToFile/SaveToStream methods but cannot
load the resultant data using the LoadFromFile/LoadFromStream methods.
I am assuming that in order to use nested datasets a secondary
ClientDataset is required to store/use the nested dataset data.
In my case there is nested data but not CDS to store the data. Hence the
AV on address zero.