User Tools

Site Tools


readme:knownissues:delphi

DK for Delphi

Documentation | Known issues | DK for Delphi

Android and Intel devices

Running Android Firemonkey application on the Intel-based devices. You can try the steps from the link below, but so far we tested this only on an emulator.

The result of this test showed it is possible to run the application, but there is a problem with debugging. http://blog.marcocantu.com/blog/2015-october-running-android-intel.html

Displaying sample layers

To display a layer from the folder with TatukGIS Samples data, please add GisAllLayers unit or GisAllBasicLayers unit. Otherwise only very few standard formats, like SHP, GML, JPG, WMS, and WMTS, are supported.

Deployment Configuration

To run the Android/iOS/OSX application properly, please remember about correct Deployment configuration: do not use absolute path in the project:

  • paths are case sensitive ;
  • change Remote Path to StartUp\Documents\ (for iOS platform) or assets\internal\ (for Android platform)

Note: After a local change of file content/name, it is recommended to uninstall application manually.

C++ usage of TGIS_ObjectList

TGIS_ObjectList is based on generics and, due to bugs in C++Builder, such object cannot be deleted on the C++Builder side. A source of the problem is that generics destructors in Delphi are inlined and therefore cannot be properly called/expanded from C++ code. A workaround is to free such object using DK helper function FreeObjectNotNil See C++ version of the SplitByArc sample

TGIS_ObjectList can not be instantiated on C++ sites due to limitation described in RAD Studio documentation: How to Handle Delphi Generics in C++. Therefore the use of TGIS_ObjectList is limited to list returned by DK API.

Rendering errors in FMX

If you encounter any of these problems on Windows:

  • Lights in 3D are strange and generally wrong (no shadows but intensive color shade only)
  • Buttons or a toolbar are blinking black upon mouse moving

The most common cause is a buggy DirectX 11 driver. In such case, just force a no DX11 driver by placing this line at the end of your main form:

initialization
  FMX.Types.GlobalUseDX := False ;

If the problem still persists, try also to switch to software rendering by disabling DirectX entirely:

initialization
  FMX.Types.GlobaluseDirect2d := False ;

Those problems are not a bug in terms of the Developer Kernel. The bug(s) is located elsewhere and we have no influence on resolving it.

PNG images looks strange

only VCL affected

Some PNG images (also fetched from web services like WMS & WMTS) looks somehow bad having a dark hollow around features and texts. The problem is related to a bug in Delphi TPngImage class which improperly handles transparent palette. So only PNG 8, 4 bits per color are affected. A workaround for web services is to ask for “image/png24' or image/png; mode=24bit;”. You can also apply this fix: RSP-16446 and vote.

HiDPI support in VCL

We made an effort to support HiDPI even on an older version of RAD Studio. However, due to some internal limitations, a reliable support is available on RAD Studio 10.1 Berlin or newer. On older version way how forms are presented depend if HiDpi monitor is a main monitor or not. As a result, we strongly recommend disabling HiDPI, if you do not run at least RAD Studio 10.1 Berlin.

RAD Studio 10.2 Tokyo fixes a few more issues like the improper size of forms captions and therefore it is a recommended minimum version.

HiDPI support in FMX

Generally, it works as expected. However, if you encounter endless form flashing upon moving a form between monitors with different DPI - do not blame us, instead please vote forRSP-18270.

HTTP data fetching

When connecting to web services, we try to use the Embarcadero native and cross-platform THTTPClient class instead of WinInet API. Therefore a basic access authentication by prepending username:password@ to the hostname in the URL may not work correctly. Instead, USER and PASS authentication parameters should be added to the url after ? as key-value pairs.

Using THTTPClient can cause problems with connecting to some HTTPS services and handling the security certificates. Therefore to use legacy WinInet API, a user can disable the USE_NEW_HTTP_CLIENT define in GisInclude.inc source.

Version specific problems

10.2 Tokyo

  • Rendering 3D map in FMX on Mobiles
    Due to a bug introduced in RAD Studio 10.2 rendering 3D is rendered only partially. If it is crucial for you, please step back to 10.1 Berlin. Also, you are welcome to vote on RSP-18365.
    RAD Studio 10.3 Rio resolved this problem.
  • Polygon rendering on Android
    The original version of Tokyo properly renders complicated polygons on Android. However, later fixes to introduce a serious bug in rendering. Still not resolved. You can vote at: RSP-18492. The only known workaround is to step back to version Berlin 10.1.
    RAD Studio 10.3 Rio resolved this problem.
  • BPL Incompatibilites
    Installation on Tokyo requires BDS Update 2 (build 2004). Please download it from RAD Studio, Delphi, C++Builder 10.2 Release 2. If this update is missed an error “missed entry point” is likely to occur.

10.3 Rio

  • Due to RAD Studio 10.3 bug, a compiled application can crash on WindowsXP. You can vote at:RSP-21822. Unfortunately, the same bug blocking any Direct2D multithreading and therefore using basemaps causing fatal errors. A workaround is to compile Rio app with VCL.Direct2D.pas unit from a previous version of RAD Studio.
  • An Android application compiled with RAD Studio 10.3.1 will crash on any threads code utilizing TNetHttpClient or THttpClient. For example, any Webtiles layer will crash or hung-up. Please visit this Embarcadero bug report  RSP-23742 and apply the suggested patch.
2019/05/08 14:17