You are not logged in.
TWPManagerServer = class(TSQLRestServerDB)
private
protected
public
published procedure GetLicenceInfo(var Ctxt: TSQLRestServerURIContext);
...
The AV occurs in procedure TSQLRestServerURIContext.Returns(
procedure TSQLRestServerURIContext.Returns(const Result: RawUTF8;
Status: integer; const CustomHeader: RawUTF8; Handle304NotModified: boolean);
var clientHash, serverHash: RawUTF8;
begin
if Status in [HTML_SUCCESS,HTML_CREATED] then begin
Call.OutStatus := Status; <- Access violation here
Call.OutBody := Result;
Offline
I found the problem:
Method should be declared:
published procedure GetLicenceInfo(Ctxt: TSQLRestServerURIContext);
Because changed type TSQLRestServerCallBack;
TSQLRestServerCallBack = procedure(Ctxt: TSQLRestServerURIContext) of object;
Offline
Yes the signature changed, as notified on this forum and the blog.
http://synopse.info/forum/viewtopic.php?pid=8674#p8674
Now it is much more powefulll, expandable and easy to maintain.
Offline