#1 2013-11-26 10:59:47

Kobe
Member
Registered: 2013-04-08
Posts: 38

Error with Client-Server services via methods

When I'm using the code, in this code A is Integer and B is a Extended type of  Parameter:

....
if UrlDecodeNeedParameters(Ctxt.Parameters,'A,B') then
....

I get a acess violation error that happens in this function:

...
function IdemPChar(p, up: PUTF8Char): boolean;
...
mov cl,[edx] // happens in this line

Offline

#2 2013-11-26 12:26:12

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,661
Website

Re: Error with Client-Server services via methods

I was not able to reproduce the issue.

Offline

#3 2013-11-26 12:55:25

Kobe
Member
Registered: 2013-04-08
Posts: 38

Re: Error with Client-Server services via methods

Log of the error is this one:

20131126 08495753  " EXCOS EAccessViolation (C0000005) at 00180359 SynCommons.IdemPChar (16235)  stack trace 00003BEA System.@GetMem 00007BC4 System.@NewAnsiString 002031AD mORMotHttpServer.TSQLHttpServer.Request (546) 00201EB8 SynCrtSock.THttpServerGeneric.Request (4285) 00201672 SynCrtSock.THttpApiServer.Execute (4069) 0005A729 System.Classes.Classes.ThreadProc 00007ACA System.ThreadWrapper 

I'm using Delphi XE2 UP4.

In the client I'm using this code to call for the execution in the server:

Http.CallBackGetResult('UpdatePrices', ['A', 25, 'B', 0.54]) // a example o the parameters, Http is a TSQLHttpClientWinHTTP

Last edited by Kobe (2013-11-26 13:20:12)

Offline

#4 2013-11-26 14:52:48

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,661
Website

Re: Error with Client-Server services via methods

What is Ctxt.Parameters content?

Offline

#5 2013-11-26 15:14:40

Kobe
Member
Registered: 2013-04-08
Posts: 38

Re: Error with Client-Server services via methods

The Ctxt.Parameters content is '' (null).

I don't understand why, because as I said:

Kobe wrote:

In the client I'm using this code to call for the execution in the server:

Http.CallBackGetResult('UpdatePrices', ['A', 25, 'B', 0.54]) // a example o the parameters, Http is a TSQLHttpClientWinHTTP

Which I believe sends values to the Ctxt.Parameters, so its content could not be '' (empty)

Last edited by Kobe (2013-11-26 15:19:42)

Offline

Board footer

Powered by FluxBB