Delphi 10.4 Sydney is a specific version of Delphi released in May 2020.
Questions tagged [delphi-10.4-sydney]
363 questions
0
votes
1 answer
Why do I get a stack overflow when I call the Windows API from my Delphi program?
My form supports drag'n'drop of files from the Windows Explorer:
uses
ShellApi, System.IOUtils;
procedure TFormMain.FormCreate(Sender: TObject);
begin
DragAcceptFiles(Self.Handle, True);
end;
procedure TFormMain.WMDropFiles(var Msg:…

AlexV
- 22,658
- 18
- 85
- 122
0
votes
2 answers
Program started with CreateProcess does not receive WM_CLOSE
I'm starting an executable with CreateProcess, if it does not terminate within 3 seconds (testing) I'm sending it a WM_CLOSE
Code is based on the SO URLs in the source.
Issue:
The SendWMCloseEnumFunc does its thing and sends a WM_CLOSE
The program…

Jan Doggen
- 8,799
- 13
- 70
- 144
0
votes
0 answers
Blank delphi FMX app with entitlement for push notifications enabled crashes on start
Reproduction:
File -> New -> Other -> Multi-Device Application.
Tabbed with Navigation (or other non 3D, non blank app)
Build and start the app as android 64-bit and launch is in the connected device.
This works.
Now, as soon as you go…

T.S
- 355
- 4
- 18
0
votes
1 answer
FireDAC : KILL command cannot be used inside user transactions
When I try that my application kills an SQL Server process, through a FireDAC connection to that SQL Server, executing a KILL command, I get an KILL command cannot be used inside user transactions exception
FireDACConnection.Execute('KILL…

Marc Guillot
- 6,090
- 1
- 15
- 42
0
votes
1 answer
Delphi IDE opens a simple text file as a binary file. Text view needed
I want to customize a simple text file with Delphi IDE. The view in Delphi Sydney takes getting used to.
How can I convince the IDE to show me the text? Switching from Binary (Binär) to Ansi is unsuccessful.

USauter
- 295
- 1
- 9
0
votes
1 answer
Form does not recognize DataModule TSqlQuery
I have created a Form with 4 DBExpress elements.
Until the db elements was in the form everything worked fine.
The problem born when I created a DataModule to have it more tidy.
I already did 'use unit' and selected the DataModule but when I run the…

Wario
- 13
- 6
0
votes
2 answers
TWICImage: how to save transparent BMP?
I'm using Delphi 10.4.2 and I have an application that scales images (BMP, GIF, PNG, ...).
My problem is that if the input image is a transparent BMP the output BMP is not transparent, instead it has a black backgound. This also happens when the…

Marina Finetti
- 107
- 7
0
votes
1 answer
FMX: TScrollBar MouseDown and MouseUp events not triggering
I've created the following class to try to improve the response of a scroll bar. The reason is that if the code in the scrollbar's onchange event is even slightly slow then updates don't take effect until you stop dragging the thumb. This is…

XylemFlow
- 963
- 5
- 12
0
votes
1 answer
How can I know if all the text is selected in a TRichEdit when the text has three or more lines?
I have a TRichEdit with some RTF in it (text with formatting only) and I want to know if all the content of the TRichEdit is selected. To do so, I do:
var AllSelectd: Boolean;
//...
AllSelectd := MyRichEdit.SelLength = MyRichEdit.GetTextLen;
which…

AlexV
- 22,658
- 18
- 85
- 122
0
votes
0 answers
How to send a push notification to APNS via TIdHttp indy component?
I have been using Indy's TIdTCPClient component successfully for quite a while now to send push notifications to my mobile app users. Lately, due to new push notification requirements of Apple, this feature has stopped being functional for iOS…

Johny
- 419
- 4
- 15
0
votes
1 answer
How to control image resolution (size) when using TakePhotoFromCameraAction (FMX.MediaLibrary.Actions) in FireMonkey?
On both Android & iOS, I am successfully using TTakePhotoFromCameraAction in FMX to save photos taken by the user into a TImage.
When using TTakePhotoFromCameraAction, can I control the resolution (ultimately the size in bytes) of the photo that's…

rhazell
- 285
- 1
- 3
- 5
0
votes
1 answer
How do I properly split comma delimited text in Delphi Syndey 10.4?
I am converting code from Lazarus to Delphi 10.4 Sydney and have a line that throws an error:
// Split line and put it into a new array, txtDataArray
txtDataArray := txtToParse.Split(['.', ',', '!'], TStringSplitOptions.ExcludeEmpty);
txtToParse is…

rubidex
- 5
- 2
0
votes
1 answer
In Delphi, how do you use BinToHex?
Coming from LCL and Lazarus Pascal, I am trying to convert all my code to Delphi Pascal.
One line that is not working involves BinToHex:
function BinStr2Hex(S: AnsiString): AnsiString;
var
i: integer;
begin
Result := '';
for i := 1 to…

karmacomposer
- 49
- 7
0
votes
0 answers
java.io.ioexception: Prepare failed status while playing Audio streaming in Android using Delphi 10.4.1
I'm using Delphi 10.4.1 for developing android mobile application. I'm trying to use the media file name from the cloud file (http://publicipaddress:8000/playfile.mp3). And this files is playing properly in web browser. And When I tried the…
0
votes
1 answer
Check whether a string is a valid URL in Delphi?
In a Delphi 10.4.2 win-32 VCL Application in Windows 10, I try to check whether a string is a valid URL.
Of course, I have examined the answers at: https://stackoverflow.com/search?q=delphi+check+valid+url
and: What is the best regular expression to…

user1580348
- 5,721
- 4
- 43
- 105