CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

AccessViolation in design time

by asp » 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

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.
asp
 
Posts: 235
Joined: 06 Dec 2013 11:17
Location: Moscow, Russia

by Alexander Bulei » 20 Jun 2014 14:01

Hi asp,

Confirmed, will be fixed asap.
Thanks.

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal


Return to JQMapQuery

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.