Questions tagged [delphi-10.2-tokyo]

Delphi 10.2 Tokyo is a specific version of Delphi released in March 2017.

Delphi 10.2 Tokyo supports development of applications covering 32-bit and 64-bit, 32-bit, server 64-bit, 32-bit and 64-bit, and 32-bit. Windows applications may be built using either the framework or the (FMX) framework, whereas the Mac and mobile platforms are built under the Firemonkey framework only.

Always use the tag alongside this tag.

References

558 questions
5
votes
2 answers

How do I setup an ODBC connection to Oracle using FireDAC?

I can succesfully connect to Oracle through the native drivers, but cannot get an ODBC connection to work. The Oracle 11g client software is installed on my Windows 7 64 bit machine, as well as the 32-bit ODBC drivers downloaded from Instant Client…
Jan Doggen
  • 8,799
  • 13
  • 70
  • 144
5
votes
2 answers

Delphi Android app API level 26?

I got my app into Google Play's app store but I also got this warning: Your app currently targets API level 14 and must target at least API level 26 to ensure it is built on the latest APIs optimized for security and performance. From August…
Mike at Bookup
  • 1,211
  • 14
  • 32
5
votes
1 answer

Dynamically making indy use TLSv1.2

GitHub has stopped supporting TLS v1.0 and v1.1 (https://githubengineering.com/crypto-deprecation-notice/), so my code no longer wants to download from it. I have checked and it seems I need to make Indy use TLS v1.2, as stated here: Using Indy 10…
Adriaan
  • 806
  • 7
  • 24
5
votes
2 answers

Reliably read Windows Scaling factor from Delphi VCL application

In my efforts to properly handle DPI changes in my application, I am using the following code to read the current scaling factor: TYPE TZoom = BYTE; FUNCTION OldStyleGetDpiForSystem : TZoom; cdecl; VAR DC : HDC; X,Y,Z :…
HeartWare
  • 7,464
  • 2
  • 26
  • 30
5
votes
0 answers

(delphi) how to add property to child controls?

In the Delphi IDE, some components in Delphi have the ability to "add" properties to the child controls they contain in the property editor. How can I achieve the same thing with my own TCustomPanel descendant? Some more details: What I want to…
Stephane
  • 3,173
  • 3
  • 29
  • 42
5
votes
2 answers

Delphi compiler difference between IntToStr() and Integer.ToString()?

What is the basic difference between IntToStr() and Integer.ToString() when converting an Integer to a string. Which one is faster? var VarInt: integer; VarStr: string; begin VarInt := 5; VarStr := IntToStr(VarInt); VarStr :=…
Dicky Tamara
  • 211
  • 2
  • 14
5
votes
0 answers

Delphi 64-Bit Code Hook Possible for Runtime VCL Style AV?

It appears as though there may not be a user solution without a Delphi Tokyo fix, but it seems worth asking. The simplest way to make this AV reproducible. Start a new VCL project. Change Platform to 64-Bit. Link with Runtime Packages. Set Style…
DelphiGuy
  • 211
  • 2
  • 11
5
votes
1 answer

Find out why application thread messages go missing with TSaveDialog

Developing with RAD Studio (Delphi) v10.2.1 (Tokyo release 1) on Windows 10 "Creators Update" 64bit, but 32bit development. The application is VCL with multiple background threads, each using Indy TidHTTP to fetch network resources. Synchronisation…
GeoffW
  • 145
  • 1
  • 7
5
votes
1 answer

Is there any way to avoid hidden forms being displayed on taskbar mini-window hover?

This pertains to a Delphi application with a child form that has been shown and then hidden but not freed. If a user hovers over the (Windows 10) taskbar "mini-view" of the application the hidden form(s) will become visible (during the hover.) …
MarkF
  • 1,616
  • 1
  • 17
  • 27
5
votes
2 answers

Delphi - Trying to get StackTrace for an exception

I have an exception logger that logs all exceptions to a log file: class function TLogger.LogException (ACaller: String; E: Exception): Boolean; var LogFilename, tmp: string; LogFile: TextFile; appsettings: TApplicationSettings; begin //…
Rohit
  • 909
  • 1
  • 9
  • 20
4
votes
1 answer

How to protect a fragment of code from auto-formatting CTRL+D in delphi

Is there any directive to prevent fragment of code from being changed? For example: procedure Test; {CODE_FORMATTER OFF} const a1 = 'a'; a2 = 'b'; a3 = 'c'; b2 = 'd'; b3 = 'e'; {CODE_FORMATTER ON} begin end;
lcdk
  • 59
  • 2
4
votes
1 answer

ADODataSet.Open bypasses try catch with `ArgumentOutOfRange` exception, hangs application - Delphi 10.2

I maintain an application that runs as a service in a server environment. It is multithreaded, where each thread does work according to a task queue. This task queue is just a list of strings with "job types" as their values. So while several…
Brandon Gandy
  • 41
  • 1
  • 3
4
votes
0 answers

What global resources does `GlobalAddAtom` require, besides an entry in the global atom table?

On occasion when GlobalAddAtom is called I get a NULL Atom back. Formatting the error from GetLastError shows "Not enough memory resources are available to process this command", but using Jordi Corbilla's Atom Table Monitor I can see that only…
Jasper Schellingerhout
  • 1,070
  • 1
  • 6
  • 24
4
votes
2 answers

Using OpenSSL to Generate KeyPairs

I'm using delphiopenssl wrapper to generate .pem format key files. I'm using Generate RSA Key example to generate these keys. What I need Two days ago I was hoping to find a simple way to generate RSA keys and use them to encrypt/dcrypt some strings…
Nasreddine Galfout
  • 2,550
  • 2
  • 18
  • 36
4
votes
1 answer

FMX Delphi 10.2 Show form or please wait panel while task executed

I have several task on button click. eg. Show form or please wait panel.... Load data from database (duration 5-10 seconds) Clear all TEdit field Hide form or please wait panel.... ShowMessage('completed') Is it possible After click on button show…
user_odoo
  • 2,284
  • 34
  • 55
1 2
3
37 38