Reputation: 41
We had the Datasnap Servers working with Delphi XE2 but now that we upgraded to Delphi XE3 the following problem is happening:
For example, this function receives a JSON and returns it as well.
function TServerMethods1.Json(Obj: TJSONObject): String;
begin
Result:= Obj.ToString;
end;
if you make the request like:
http://localhost:8080/datasnap/rest/TServerMethods1/Json/{“inode”:”221”,”itdmov”:”22”}
In Delphi XE2: {"result":["\"{\u201Cinode\u201D:\u201D221\u201D,\u201Ditdmov\u201D:\u201D22\u201D}\""]}
In Delphi XE3: {"error":"Access violation at address 00660588 in module 'Project1.exe'. Read of address 49F99879"}
I hope somebody can help us with this issue as we have hundreds of functions that receive a TJSONObject and they are all showing errors.
Thank you
Upvotes: 3
Views: 723