AccessViolation in design time
Posted: 20 Jun 2014 13:17
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
because actually TIWCGJQMapQueryLayerJSONOptions' Owner is TIWCGJQMapQueryLayer and it isn't derived from TControl, so (csDesigning in TControl(Owner).ComponentState) always returns false.
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.