52,553 questions
1
vote
1
answer
112
views
Delphi TTreeeView Horizontal Scroll and custom item draw
We have implementation that uses OnCustomDrawItemEvent of treeview to draw items.
NodeRect := Node.DisplayRect(true);
TextRect(NodeRect,NodeRect.Left, NodeRect.Top, sometext);
The issue is that some ...
2
votes
1
answer
341
views
"Out of Memory" error when extracting many BLOB files from SQL Server database with Delphi program
I'm trying to extract a large number of files stored in a BLOB column in a SQL Server database. The files are being saved correctly to a directory, but after processing approximately 30,000 files, the ...
1
vote
1
answer
108
views
Copy Linux SDK to new Delphi installation from another PC
Can I, and if yes, then how, copy a Linux SDK from a Delphi installation on one PC to a Delphi installation on another PC?
My situation is this:
I have a local installation of Delphi (12.3), on which ...
1
vote
0
answers
84
views
Unable to deploy mobile application in RAD Studio probably due to bad SDK installation
Hello for all kind people!
I just starting into mobile development in Delphi. Early I used to use VS. I encountered a problem with mobile deployment to my device. When I open SDK manager I see next ...
0
votes
1
answer
136
views
Delphi how to synchronize input in StringGrid with SynEdit
I have written a program to search for errors (according to a pattern) in the text. The error search is done programmatically from the text in SynEdit with the subsequent display of errors in ...
0
votes
1
answer
162
views
Delphi TListView & TJvListView - Subitems line in 255 characters
TlistView (and TJvlistView) - Subitems line in 255 characters. Is there a way to get around this restriction?
Dynamically I fill in the SubItems of 670 characters, but the line turns out only 255 ...
0
votes
1
answer
143
views
Delphi Palette doesn't show standard/xml/net..etc components anymore (and it's causing errors)
When using Delphi, I was looking for the Timer component on the palette (VCL application). Accidentally, I pressed a button or I clicked something (I didn't notice what I did), and after what seemed ...
2
votes
1
answer
126
views
MidiOutOpen and MidiOutClose: What is meant by device?
I have a follow-up question to this question (How to play MIDI in Delphi) and a previous question of mine (How to play chords using MIDI?).
Regarding MidiOutOpen and MidiOutClose, what is meant by the ...
1
vote
1
answer
134
views
Trying to access header data on REST server passed in from client in Delphi
I am building a small REST server, which will be deployed to about 2 dozen people, and provide some data on an internal network.
I have the GET request setup and can return JSON of the data that I am ...
1
vote
1
answer
217
views
How to install TMS FNC Charts in Delphi 12 Community Edition?
I just bought TMS FNC Charts and I'm trying to install it onto Delphi 12 Community Edition, but I'm having some issues.
Delphi 12 Community Edition wasn't an option in the installer, so I had to go ...
0
votes
0
answers
215
views
Delphi 12.2: Internal error F2084 "URW1394" when compiling with Ctrl+F9 or F9
I'm using Delphi 12.2 and have recently started encountering the internal compiler error "F2084 Internal Error: URW1394".
This happens when I compile a project using Ctrl+F9 or run it with ...
3
votes
1
answer
150
views
How to get updated subscription status after cancellation without restarting the app (Google Play Billing in Delphi)?
I’m implementing subscription functionality in my mobile app using Google Play Billing and TInAppPurchase in Delphi. I’ve encountered an issue that I hope someone here might have already faced and ...
0
votes
0
answers
216
views
How to deal with user entered single quotes? [duplicate]
I've got a Delphi app with a relational Postgres DB. The problem I have is say we have a customer called Jon's Store. Whenever I try to query on that customer I get the error:
Syntax error at or near ...
6
votes
1
answer
171
views
How do I make a generic method that can convert all strings in a record to lowercase in Delphi?
I want a procedure that does something like this:
procedure RecordStringToLower(var MyRecord);
begin
// 1. Loop through all fields
// 2. Find string fields
// 3. Convert all string fields to ...
6
votes
1
answer
224
views
Can I trust the Delphi default() to initialize string in a record to be empty?
Given this declaration:
type
TRec = record
FNr: integer;
FName: string;
constructor Create(ANr: integer);
end;
and this implementation of the constructor:
constructor TRec.Create(ANr: ...
1
vote
1
answer
148
views
EIdOSSLLoadingCertError "[...] PEM_read_bio:no start line" when trying to post with TIdHTTP and SSLIOHandler
I'm trying to do a POST request in Delphi, using the Indy TIdHTTP component. The target host requires a certificate and key files. Testing the requests with Postman or Insomnia, it works fine, returns ...
0
votes
0
answers
94
views
ld-linux errors (libdl.a syntax and System.o undefined references) with dcclinux64 in Delphi 12.3
I'm updating a build server, that builds our Delphi application for Linux using dcclinux64.exe, command-line parameters and also info from a dcclinux64.cfg file. It works with Delphi 10.4 and Ubuntu ...
0
votes
1
answer
98
views
How to display a 'delete' icon on hover for a node in TVirtualStringTree?
I am working with TVirtualStringTree, and I would like to display a 'delete' icon when the user hovers over a specific node or the node is selected.
Example in VSCode Explorer View:
Is GetImageIndex ...
1
vote
1
answer
89
views
Trying to implment MacOS PMGetPageFormatPaper in FireMonkey
Trying to get (and eventually set) the paper selection at runtime using Delphi FireMonkey for MacOS.
I've substituted what I think are the correct variables and functions into a routine that I have ...
1
vote
2
answers
145
views
Multidimensional array stack overflow in Delphi 11.3
Suddenly we faced the following problem that the allocation of the multidimensional array consumes more memory than it is required for the array itself.
Minimal code to reproduce:
type
TConfig1 = ...
2
votes
1
answer
266
views
Embarcadero InterBase 2020 Server Edition Update 6 views with more than 2 UNION ALL Select Statements Fails
I downloaded the latest Interbase from here https://altd.embarcadero.com/download/interbase/2020/latest/InterBase_2020_Windows.zip and used the trial version.
Upon installation, either as 32-bit or as ...
0
votes
0
answers
124
views
Delphi TPrintDialog always uses default printer
In Delphi XE2, I'm using a TAdvStringGrid to print a simple report. Prior to submitting the job, I execute a TPrintDialog to select the target printer, but regardless of which printer I select in the ...
0
votes
0
answers
120
views
Convert multiple single page TIFF files into one multi-page PDF using Delphi 11 VCL and SynPDF
In a Delphi (v11) VCL program, I'm trying to create a multi-page PDF file from individual TIFF pages stored in a folder. I have included the Synopse PDF (SynPDF) library (in Uses SynPdf, SynCommons). ...
0
votes
1
answer
206
views
Failure when connecting to a LAN UNC path located Interbase database, using IBLite
I'm writing a little POC console IBLite application for Windows, using Delphi and the FireDAC components
Here is a code that works without error:
lDACConnection := TFDConnection.Create(nil);
...
1
vote
1
answer
252
views
Simple animation on the form for Delphi with FMX.Graphics
I want the circle to move on the Form in X-direction. This works quite good with the following Delphi code in FMX.Graphics:
procedure TForm1.ButtonMoveFormClick(Sender: TObject);
var
MyRect: TRectF;
...