You are not logged in.
Pages: 1
Hi everyone,
I have a client made with Smart Mobile Studio and a Mormot server communicating through an interface. This setup is build on
the units written by LoPiTaL. I am sending JSON string from the client to the server. When accessing this string (using JSONToObject)
I get an access violation. Tracing into JSONToObject I
see that the string is "", although in the debugger the string passed from the client is shown.
In the client, the parameter is declared as string and in mormot it is RawJSON.
Does anyone have an idea what is happening and what is the correct way to pass string args?
Thanks in advance,
Wai
Last edited by wai-kit (2013-09-05 09:59:40)
fpcdeluxe, FPC 3.2 / Lazarus 2.0, mORMot on Windows 10 ...
Offline
Are you using the latest 1.18 "unstable" version of mORMot?
See http://synopse.info/fossil/wiki?name=Get+the+source
At interface level, in mORMot it should be RawUTF8 not RawJSON.
What is your interface definition?
Offline
Yes, changing from RawJSON to RawUtf8 solved the problem.
Merci, Arnaud.
Also cool, that I don't have to log in to get the latest source. The Nightbuilds are really handy.
Last edited by wai-kit (2013-09-06 08:48:00)
fpcdeluxe, FPC 3.2 / Lazarus 2.0, mORMot on Windows 10 ...
Offline
The 5 MB file is no problem to download. It is quite fast.
fpcdeluxe, FPC 3.2 / Lazarus 2.0, mORMot on Windows 10 ...
Offline
Pages: 1