Page 1 of 1

AccessViolation in design time

PostPosted: 20 Jun 2014 13:17
by asp
Hello!

If you try to set Url for JSon layer in design time, you will get EAccessViolation. I guess it is by reason of the following code in TIWCGJQMapQueryLayerJSONOptions.SetUrl() method

Code: Select all
if csDesigning in TControl(Owner).ComponentState then exit;
  if not CGIsHttpLink(LUrl) then
  begin
    WebApp:= GGetWebApplicationThreadVar;
    LBaseUrl:= CGGetRequestFullUrl(WebApp.Request,WebApp.AppID);
    LUrl:= IncludeURLPathDelimiter(LBaseUrl) + CGRemoveSlash(LUrl);
  end;


because actually TIWCGJQMapQueryLayerJSONOptions' Owner is TIWCGJQMapQueryLayer and it isn't derived from TControl, so (csDesigning in TControl(Owner).ComponentState) always returns false.

Re: AccessViolation in design time

PostPosted: 20 Jun 2014 14:01
by Alexander Bulei
Hi asp,

Confirmed, will be fixed asap.
Thanks.

Best Regards.