52,552 questions
Advice
2
votes
5
replies
235
views
Delphi 13 , compile error using old source code with DUNITX
I have moved my code over many Delphi versions - without any change on the code base .
The upgrade from Delphi 10.4 to Delphi 13 for my dunitx testcases failed :
Working code Delphi 10.4
assert....
Score of -2
1 answer
215 views
Only final project in Project Group (bpg) runs correctly [closed]
My Delphi project group (.bpg) has three projects:
PROJECTS = Proj1.exe Proj2.exe Proj3.exe
When loaded in the IDE, I can switch between (activate) projects. All projects build correctly and can be ...
Score of 1
4 answers
288 views
Delphi IDE issue "no code formatting possible"
I have a strange issue with a recent installation of Delphi 13: The functions "Format Source" and "Refactor" are disabled. What happened to my installation? Where can I fix this ...
Score of 6
1 answer
285 views
Possible Delphi Win64 Debugger Bug: Volatile registers (RCX/RDX) truncated to 32-bit after breakpoints under heavy multithreaded load
I am developing a high-performance PS/PDF RIP workflow engine in Delphi (Win64 target). The rendering engine relies heavily on multithreading and custom assembly blocks (AVX/YMM instructions for RLE ...
Advice
0
votes
9
replies
214
views
How to find Google Drive's assigned letter?
I have a Delphi program which needs to know Google Drive's drive letter. It appears that the default friendly name is "Google Drive", so I enumerate my drives and look for that text. This ...
Score of 1
1 answer
242 views
In Delphi, how to use the 'implements' directive with a generic interface type?
I want to contain an interface instance inside a container instance while being able to:
synchronize lifetime
not alter the contained instance
be able to resolve the inner interface from the outer, ...
Score of 1
1 answer
258 views
How to migrate Indy to 64bit OpenSSL DLLs?
I'm in the process of migrating my Delphi 12 apps from 32bit to 64bit. Currently I'm using Indy with the 32bit OpenSSL DLLs (libeay32.dll and ssleay32.dll).
When I change to 64bit and try to run the ...
Score of 0
0 answers
180 views
AfterPost or AfterDelete
I’m working with Delphi 10.4.2, VCL, FireDAC and EhLib.
In a real application, I have a TFDMemTable connected to EhLib data-aware controls, mainly TDBGridEh and TDBEditEh. The dataset is loaded from ...
Score of 2
1 answer
184 views
Interlocked functions on unsigned variables
what is the safe and correct way to atomically write unsigned variables using the Interlocked* functions or TInterlocked?
In the function below, are (A) and (B) fully atomic and threadsafe?
Or is (C) ...
Advice
0
votes
4
replies
134
views
DELPHI : [dcc64 Fehler] E1026 File not found : 'DUnitX.Loggers.GUI.VCL.dfm'
I need some help getting my DUNIT testcases up and compiling again after the upgrade to DELPHI 11.
This is the top of my command-line testcase program; it is compiling and functional.
{$IFNDEF ...
Advice
0
votes
4
replies
155
views
DELPHI : Working with many different monitor config's
I'm using Delphi 11 and have upgraded from Delphi 10.4. Since the upgrade, I've noticed some very weird behavior in the Delphi IDE. Whenever I load a new project, the IDE shrinks to a minimized/tiny ...
Score of 1
1 answer
101 views
Possible race in TIdUDPServer.CloseBinding: listener thread keeps raw Binding reference while CloseBinding closes it before WaitFor
I am investigating an intermittent AV during rapid TIdUDPServer.Active := False/True
cycles in a Delphi 12.2 application.
The crash happens in the UDP close path, at:
TIdUDPServer.CloseBinding
...
Advice
1
vote
11
replies
272
views
How to load Excel date cell
I'm using OfficeXML4D library for Delphi and when I do something like this:
Sheet.Cell['F2'].AsDateTime := Now;
What happens is that the date will show 2096-05-20, instead of 2026-05-20.
I checked ....
Score of 2
1 answer
168 views
How to notify a (Spring4D) TObjectDataSet when a bound object property has changed
The value shown in an attached grid is updated when using
ObjectDataSet.FieldByName('Description').AsString:='Bob';
But not when calling
ObjectDataSet.GetCurrentModel<TSaleLine>.Description:...
Score of 3
0 answers
274 views
How get screenshot of offscreen window?
How to get a continuous screenshot of a window that is not visible on the screen (offscreen)?
I have the following code that initially seemed to work, but this got only the first frame (when the ...