52,553 questions
0
votes
0
answers
28
views
How to correctly call an iOS completionHandler block from Delphi without crashing?
I’m trying to implement this iOS delegate method in Delphi:
- (void)URLSession:(NSURLSession *)session
task:(NSURLSessionTask *)task willBeginDelayedRequest:(NSURLRequest *)request ...
Best practices
0
votes
3
replies
125
views
Can I modify the Message of a caught Delphi Exception object and then re-raise it?
The title says it, but here is an example:
try
// ...
raise EFileNotFoundException.Create('File not found!');
except
on E: EFileNotFoundException do begin
E.Message := Format('"%s":...
Advice
1
vote
4
replies
116
views
Delphi 2010 How to save a TImage with a TPaintbox drawing overlaid?
I have a TImage bitmap on a form, and a TPaintBox with the same dimensions. The user draws some polylines on the paintbox canvas. Using paintbox means they can "erase" a line if needed and ...
3
votes
1
answer
154
views
if statement with is operator and Generics fails even when debugger shows correct type
I am implementing a message passing mechanism in a multi-threaded Delphi 2010 VCL application. My background threads need to send various DTO records to the main UI thread. I am using a generic ...
0
votes
2
answers
161
views
Shopify integration with Delphi
I am trying to use the Shopify GraphQL Admin API from Delphi. Came up with the following code:
procedure TestShopify;
var
Client: TRESTClient;
Request: TRESTRequest;
Response: TRESTResponse;
...
0
votes
2
answers
229
views
In Delphi, is it possible to create a new generic class from the unconstrained generic base class and a provided type?
I want to be able to write a function such as below, but can't get the typeinfo or type reference for the unconstrained generic type of TMyBase<T>.
type
TBase<T> = class
end;
...
2
votes
1
answer
102
views
What's the difference between Text and EditValue in DevExpress TcxTextEdit component?
I have been tasked to convert one of our VCL DevExpress forms over to FMX. I am now busy replacing all of the TcxTextEdit components with TEdit components.
The problem is that in some places, the code ...
0
votes
2
answers
172
views
Cannot get TList<>.Sort() to work in Delphi 11 FMX
I have been trying to sort a collection of objects. While I have seen many promising solutions, my compiler simply won’t accept them (error message in procedure GenReorderSpeciesList). I am using ...
Advice
0
votes
3
replies
152
views
IBObjects for Delphi 13
I am faced with a long overdue migration from Delphi XE2 to Delphi 13. This involves upgrading to IBObjects version 5. Sadly, IBObjects seems to be a dead product and is no longer available.
Has ...
2
votes
2
answers
184
views
What is the biggest number that MSXML can handle in XSLT?
When doing some numerical calculations in XSL templates I stumbled over the fact that a value of 3.600.000.000 which represents the number of microseconds in an hour can be represented in MSXML v6 ...
2
votes
1
answer
154
views
Delphi WebStencils not allowing HTML code output for the keywords
When I process a keyword like this:
In the HTML template I have:
<p>@msg</p>
and in code I have:
if SameText(AObjectName, 'msg') then
AValue := 'Must be Logged In<br />This was ...
0
votes
0
answers
125
views
Verification of the digital signature of bpl
If I understand correctly, checking a digital signature of an exe file is part of the Windows program startup routine.
I implemented the check during the loading of a DLL myself as follows:
function ...
0
votes
1
answer
95
views
How to fix error on compile : "Could not compile used unit 'IdUri'"
I'm using Delphi 12. One of my applications uses the unit IdUri. When I try to compile the application (CTRL+F9), I'm getting this error:
[dcc32 Fatal Error] myunit.pas(9): F2063 Could not compile ...
1
vote
0
answers
112
views
how to handle a range check error in Delphi 13 Android TNetHTTPClient.Get
My Delphi 13 Android project has Range Checking turned OFF for the Release configurations.
The project runs in Debug mode as expected.
Running the project in Release mode has the TNetHTTPClient.Get() ...
4
votes
1
answer
158
views
How to access sync prototypes, shortcut alt+ctrl+shift+p produces no synchronization method found
I upgraded from Delphi 10.2 to Delphi 12.3
In Delphi 10.2 I discovered sync prototypes feature activated by using keyboard shortcut alt+ctrl+shift+p. This is such a handy function. Change the header ...
1
vote
0
answers
131
views
How to detect Samsung DeX desktop mode in a FireMonkey Android app?
I'm developing a cross-platform Delphi app using the FireMonkey (FMX) framework, and I need to optimize its layout and behavior when running on Android devices that support desktop-like environments, ...
0
votes
1
answer
103
views
{dcc64 Fatal Error} E2225 Never-build package 'cxLibraryRS29' must be recompiled with Delphi 12 Community Edition
I have two Delphi versions installed on my computer.
One for commercial use which is Delphi 13, and one for personal projects which is Delphi 12 Community Edition.
I also have a license for DevExpress....
3
votes
1
answer
110
views
IMAGE_FILE_HEADER.TimeDateStamp not a Unix epoch on certain DLLs
IMAGE_FILE_HEADER.TimeDateStamp is described as:
The low 32 bits of the time stamp of the image. This represents the date and time the image was created by the linker. The value is represented in the ...
1
vote
1
answer
125
views
What does "Link with runtime packages" mean in Delphi Project Options?
I'm was trying to solve a BPL issue that I'm having, and I stumbled upon an option in the settings called "Link with runtime packages" which is a Boolean. It can either be true or false.
...
4
votes
1
answer
113
views
Add Icon to ImageList without Duplicates
I want to add icons to an TImagelist, but without adding the same Icon again. This is how I retrieve the Icon:
Icon := TIcon.Create;
SHGetFileInfo(PChar(filename), 0, FileInfo, SizeOf(FileInfo), ...
0
votes
0
answers
90
views
TVirtualStringTree: Problem with custom draw and toAutoSpanColumns
I have a TVirtualStringTree (version 8.1.1, Delphi 10.4) with seven columns. TreeOptions includes toAutoSpanColumns so that a text is spanned over the entire remaining space of a row.
I want to render ...
1
vote
2
answers
218
views
Problem downloading online OpenStreetMap tiles using Delphi Indy
As from about Sep 21 2025, a Windows program I developed in Delphi that downloads online OpenStreetMap tiles using Indy's TIdHTTP.Get() method has stopped working, sometimes issuing error messages ...
1
vote
1
answer
198
views
Does New in Delphi zero-initialize a record with managed fields? [duplicate]
In Delphi I have a pointer to a record type that contains managed types (like string and TArray):
type
POverlappedContext = ^TOverlappedContext;
TOverlappedContext = record
...
0
votes
0
answers
101
views
Record Selection in Main Dataset from a Sub Dataset in Delphi
The application I'm writing has a main form where all the database fields and DBGrid that contains the entire SQLite dataset (ExpItemQuery) reside. I have designed a database search functionality into ...
0
votes
1
answer
171
views
encrypt using OpenSSL and RSA_public_encrypt
I need to encrypt strings using a public key contained in an X509 certificate using Delphi 10.3 and OpenSSL. The certificate is already loaded in memory using the BIO routines:
var
ptrX509: pX509;
...