Showing posts with label issue. Show all posts
Showing posts with label issue. Show all posts

Monday, 24 July 2017

Delphi 10.1 Berlin fix for issue when opening older project

I recently had an issue with a project that had been updated from XE to Delphi 10.1 Berlin. The issue was when opening the project it could not find some components on the main form (3rd party), however the correct packages are installed and if I started a new project I could add the components from the tool palette without any issues.

One work-around I found was having adding these components to another project, then when I opened Delphi 10.1 Berlin I opened this project and then closed it before opening the project that had problems with the components, and it all worked fine.

In the end the solution I found was the following:

  1. In the package itself, find the unit with the 'Register' procedure.
  2. Check 'DesignInf' is in the uses clause.
  3. At the top of the 'Register' procedure add 'ForceDemandLoadState(dlDisable);' 
  4. Install the package again.
What this does is disables the IDE from using the smart loading of installed packages, this means when the IDE starts it always loads the installed packages.

Wednesday, 28 September 2016

TCategoryPanel refresh issue solved

I have a form with a TCategoryPanelGroup on it with several TCategoryPanels, on one of the category panels is a combox and when the user changes a selected value in the combobox it changes a label caption on the same category panel.

One issue I have had is that when I change the caption of the label it does not refresh correctly and it looks like the caption overwrites the previous caption. I tried various refresh, repaint and invalidates on the label, category panel and category panel group, but nothing worked. The only way I've found to solve the issue is to set the 'DoubleBuffered' property of the form to true.

Sunday, 27 July 2014

Delphi XE Android App Emulator Problem

I have recently been using Delphi XE5 do produce an Android mobile app. All was looking good until I wanted to run the app, the Android SDK comes with an Android emulator, but when I tried running the App from Delphi with the emulator running I just got a blank screen. When I plugged an Android device in it ran fine, so I thought it must be an issue with the emulator. After a few days of using the device I thought I would look into how to fix the emulator issue. All you need to do to fix this problem is to turn on the 'Use host GPU' option when setting up the device in the emulator, after that it will run, however there is another annoying issue, it is very slow.