52,552 questions
0
votes
0
answers
30
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
126
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":...
-1
votes
0
answers
58
views
Android logcat spam: TransactionCallbackInvoker writeReleaseFence failed. error 32 (Broken pipe) every frame in SurfaceView
I get this log continuously (every render frame):
E/TransactionCallbackInvoker: [SurfaceView(...)(BLAST)]
writeReleaseFence failed. error 32 (Broken pipe)
It comes from the system (SurfaceFlinger), ...
Advice
1
vote
3
replies
140
views
Can I make MyDAC update a blob field faster?
So I'm uploading around 50MB into a longblob in a local mysql server.
Using LoadFromStream, setting the param value is near-instantaneous but the execution of the UPDATE statement takes around 2 ...
2
votes
1
answer
166
views
How to handle Delphi generic constraint as 'inherits from' class
When trying the following code it will not compile as I receive this error:
Type parameter 'T' is not compatible with type TBase
I want this type constraint to support the Save method being typed to ...
1
vote
1
answer
112
views
No debug info when debugging with load process
I have compiled my application using the Debug configuration and placed the resulting EXE in another folder.
Now, I would like to debug it using Attach to Process.
The application runs, but I can only ...
1
vote
1
answer
122
views
How to remove all rows and columns in a TStringGrid?
I've tried doing:
GridRawData.ColumnCount := 0;
GridRawData.RowCount := 0;
But that fails with:
E2129 Cannot assign to a read-only property
I've also tried doing:
GridRawData.Columns.Clear;
...
0
votes
0
answers
68
views
How to install JEDI Jcl/Jvcl on Delphi 12 CE (Community Edition) [duplicate]
When I try to install JEDI (JCL & JVCL) with the Install.bat I get the error:
This version of the product does not support command line compiling.
So I have to install it manually, because as we ...
0
votes
1
answer
81
views
How can I create triangles and squares with a for loop?
I used this method to draw squares and triangles on the paint box:
procedure squarClick(Sender: TObject);
begin
canvas.Pen.Color := clgreen;
canvas.Pen.Style := psSolid;
canvas.Pen.Width :...
1
vote
1
answer
139
views
How to have one axis for two series in TMS FNC Charts?
I've built the following Chart that shows temperatures. It shows the lowest and highest temperatures for each day:
The issue I have is that there are two axis on the left and bottom. I want there to ...
1
vote
1
answer
166
views
How to SelectAll text when a TEdit gains input focus by the user clicking?
Short Version
How can i select all text in a TEdit when the control gains input focus from the user clicking the edit box?
Motiviation
Following the Windows User Design Guidelines for a "search&...
0
votes
0
answers
122
views
TADOTable Open Fails
I'm using SQL Server 2017 and ADO components with Delphi, creating an FMX application for Windows.
In the DataModule, I've added a TADOConnection and some TADOTable and TADOQuery components. In the ...
0
votes
1
answer
195
views
What is the purpose of the "HORSE_VCL" compilation directive?
I have started using the horse web framework for building an API in Delphi. The VCL sample mentions the following as a comment in the Main.Form.pas file:
// Need to set "HORSE_VCL" ...
0
votes
2
answers
190
views
Drawing an ellipse with 360 degree graduations
I have drawn a graduated ellipse on my form using the paint box.
The only problem is that I have used Moveto and LineTo many times to grade the ellipse.
procedure PaintBox1Paint(Sender: TObject);
...
1
vote
1
answer
186
views
How can I create a `onClick` event for the timer in the events section?
The program I am using has a small section for programming which is almost similar to the Delphi programming language.
In the components section, there is no timer and I want to create it myself.
{$...
0
votes
2
answers
117
views
Setting Theme back from DarkMode to "normal" or any other causes Access Violation
Why I cannot return to normal "Windows" Style? TStyleManager.SetStyle() causes Access Violation in TStyleHook.SetRedraw when called 2nd time
procedure EnableDarkMode(dark:boolean; Handle: ...
4
votes
2
answers
190
views
Clearing memory in WebApp, after completion
I have a web app written in Delphi 12 using TMS Webcore components.
At logout (which happens by user action, or after idle timeout), I want to clear the memory
for security reasons,
in case there are ...
2
votes
3
answers
139
views
How can I mod the Delphi IDE and set a custom background image for initial loading screen?
When I open my Delphi IDE I see the loading screen like this:
Is there a way to change that background image to something else and custom? I want it made cool and customized with my own photo instead ...
3
votes
3
answers
136
views
The code execution cannot proceed because IndySystem370.bpl was not found
I just upgraded one of my projects from an old version of Delphi to the latest Delphi 13. When I run the project within the Delphi IDE it works, but when I move the EXE to my client's computer it ...
0
votes
1
answer
114
views
{dcc64 Fatal Error} F1026 File not found: 'cxLibraryRS29.dcp' (VCL + DevExpress)
Heyllo.
I just upgraded my project to Delphi 13 and latest DevExpress, but now I'm getting this new error in one of my frames:
[dcc64 Fatal Error] frameAdmin.pas(8): F1026 File not found: '...
1
vote
0
answers
87
views
How to attach a Java component to a delphi Layout
I'm working with Delphi 13, building an Android-exclusive app using FireMonkey.
With a new feature we want to add, we are looking into creating a custom WebView, as the version Delphi exposes in ...
4
votes
1
answer
192
views
Can there be a non-visual (without dfm) base form between TForm and any other form of the app?
In my Delphi 2009 VCL application, I have several base forms, like:
TListBaseForm = class(TForm)
TEditableListBaseFrom = class(TForm)
TEditBaseForm = class(TForm)
Each of these base forms is using ...
1
vote
0
answers
117
views
Is it safe to allocate/free a record with managed types using AllocMem/FreeMem (Delphi)? [duplicate]
I have this record with managed fields:
type
POverlappedContext = ^TOverlappedContext;
TOverlappedContext = record
HttpApiCookieStrings: TArray<AnsiString>; // managed
...
0
votes
0
answers
67
views
VTune cannot launch application in Hotspots mode
When running VTune in Performance analysis mode, it goes without issue. When selecting Hotspots however, the launch fails with the error code 0xc0000142, which apparently is a dll loading issue.
This ...
2
votes
1
answer
165
views
How to disable "blow up" behavior when opening a dialog window on Windows 11?
I have a VCL app written in Delphi 12.3. It displays a dialog over a form. The dialog may be displayed as the result of a toolbar speedbutton click, or from a menu selection; if called from the ...