Questions tagged [delphi-10.3-rio]

Delphi 10.3 Rio is a specific version of Delphi released in November 2018.

Delphi 10.3 Rio supports development of applications covering 32-bit and 64-bit, 32-bit, 32-bit and 64-bit, 32-bit, and server 64-bit. Windows applications may be built using either the framework or the (FMX) framework, whereas the OSX and mobile platforms are built under the FireMonkey framework only.

This version of Delphi brings several enhancements to the core Delphi pascal language, including inline variable declarations and type inference, as well as RTL performance improvements, and changes to Delphi's ABIs for better C++ interoperability across all platforms. It also sports several IDE UI redesigns, better High-DPI support to the VCL, support for iOS 12 and Android API level 26+, and begins Embarcadero's push to phase out its ARC memory management model for TObject classes, starting with the Linux 64-bit compiler.

Always use the tag alongside this tag.

References

546 questions
2
votes
1 answer

Delphi XE Class using Parallel: how to?

I need to simulate cars moving (let's say) on a squared area. Anyone can easily imagine computations (x/y coords, track, speed, acceleration, pause...) The prior version, (Developed across Millenium Bug ... 21 years ago) run into the…
2
votes
1 answer

How to pass an object method as a callback method to a c++ dll in Delphi

I could pass the following to the old version of the dll type PCallbackList = ^TCallbackList; TCallbackList = record arg: Pointer; CallBack1: procedure(arg: Pointer; p1: Pointer; error: PAnsiChar); cdecl; CallBack2: procedure(arg: Pointer;…
Nasreddine Galfout
  • 2,550
  • 2
  • 18
  • 36
2
votes
1 answer

Can a Indy TCP Socket be shared between two threads?

I want a connection where both terminals wait reading for commands, and from time to time, one send some data to the other. Of course, I know how to implement my protocol, but if I do a Socket.ReadUInt32 it will block my execution path and I can't…
Marus Gradinaru
  • 2,824
  • 1
  • 26
  • 55
2
votes
1 answer

Empty Firemonkey app crashes on startup just on Android 7.1, with error NullPointerException on String.contains(CharSequence)

I created a completely new and empty FMX app, tried it using Delphi 10.3.3 and 10.4.0 (patch 3), and when installed on Android 7.1.2 devices (tried two different ones and the official simulator VM), after the splash screen this error message…
2
votes
1 answer

Android service doesn't restart when I close app

I'm doing some tests with services. My code in local service is just: function TDM.AndroidServiceStartCommand(const Sender: TObject; const Intent: JIntent; Flags, StartId: Integer): Integer; begin Result := TJService.JavaClass.START_STICKY; …
2
votes
1 answer

Is there a way to stop TaskMessageDlg making sounds?

I want to display a TaskMessageDlg with Information icon but I don't want that beep. Is it possible ?
Marus Gradinaru
  • 2,824
  • 1
  • 26
  • 55
2
votes
1 answer

Delphi cannot start Android Service above Android 8 version

My app done with Delphi 10.3 is starting and monitoring my android service successfully on Android version 7. But above Android Version 8 I get error: java.lang.IllegalStateException: Not allowed to start Intent ... app is in background uid…
2
votes
1 answer

Can I do some initializations before `Inherited Create`?

I want to create and start a thread, all with one command line TClientCopyThread.Create(...). For this, I must create the thread with Suspended = False, so that it can run immediately. I know that when I write a constructor of a new object, first of…
Marus Gradinaru
  • 2,824
  • 1
  • 26
  • 55
2
votes
1 answer

Free TStringlist as function result?

If a function I call returns a TStringList (with a TStringList.Create) and I don't assign it to a variable but use it once directly (like Data:=MyTStringFunction.Values['data'];) will I have a memory-leak or will the TStringList be freed…
Wolfgang Bures
  • 509
  • 4
  • 12
2
votes
2 answers

How to check if given path is FILE or FOLDER?

There's some way to determine with precision if a given path is a FILE or FOLDER? If yes, could show a example please? Thanks in advance.
user13342579
2
votes
1 answer

Synchronise strange behavior in service

I have a service where in the main thread I store some data and read it sometimes from the child thread. With Delphi 7 everything worked fine. Service execute, child thread create, main thread made the data, child thread called Synchronise to get it…
MrZed
  • 85
  • 5
2
votes
1 answer

Failed to set dynamic section sizes: Memory exhausted

I have a project that is big (and already works on windows) and I am trying to compile to Android 32/64 bits in Delphi RIO 10.3.3 When building to RELEASE configuration, it does compile sucessful. However this project crashes at startup. It used to…
Eduardo Elias
  • 1,742
  • 1
  • 22
  • 49
2
votes
1 answer

Resizing panels components proportionally in Delphi

So I am using Delphi Rad Studio version 10.3. I have to create a stats form for a PAT at school(Grade 11). I am trying to create a form with 2 panels. One for the buttons to display the statistics and interact with, and the other for the actual…
Romans
  • 469
  • 1
  • 4
  • 17
2
votes
1 answer

DeviceIoControl - GetLastError: ERROR_NOACCESS - 998

I have a kernel driver written in C, where it is expecting a text of type PCWSTR. What's the Delphi type equivalent to send a control code? I tried sending using the following code but GetLastError reports ERROR_NOACCESS. How to solve that? program…
user13342579
2
votes
1 answer

Check if a file is a text file or a binary file using Delphi

I want to check if a file is a plain-text file. I tried the code below: function IsTextFile(const sFile: TFileName): boolean; //Created By Marcelo Castro - from Brazil var oIn: TFileStream; iRead: Integer; iMaxRead: Integer; iData: Byte; …
Xel Naga
  • 826
  • 11
  • 28