Questions tagged [rad-studio]

Use this tag if you have questions about RAD Studio features and functionality. DO NOT use it if you have questions about how to write code in RAD Studio. Please mention the version you're using.

RAD Studio is a suite of development tools developed by Embarcadero. Can be used to develop applications in Delphi or C++.

231 questions
1
vote
0 answers

ForegroundService can't start - FMX

On newer version android I'm change startService to startForegroundService but service can't start.In manifest file is added ForegroundService permission. LIntent := TJIntent.Create; LIntent.setClassName(TAndroidHelper.Activity.getBaseContext,…
babayaro
  • 491
  • 3
  • 15
1
vote
0 answers

How should I update GUI from another thread? (RAD Studio 10.4)

I've been working on a mobile app with RAD Studio 10.4. I want to create and show a restaurant's menu at the beginning of "Run". I'm trying to do in the FormCreate() the following things in another thread: Send a GET request Fetch an XML…
1
vote
0 answers

TRESTResponseDataSetAdapter adds a row to the dataset if JSON-array is empty

If I have a TRESTResponseDataSetAdapter with RootElement = 'testdata' and provide it with the following JSON, it adds a row to the connected dataset. RESTResponseDataSetAdapter1.ResponseJSON := TRESTResponseJSON.Create( Form1, …
Magnus
  • 17,157
  • 19
  • 104
  • 189
1
vote
0 answers

Nested JSON path using TRESTResponseDataSetAdapter not working (possibly due to RAD Studio 10.4 upgrade)

In an existing project I need to parse some JSON into a dataset using TRESTResponseDataSetAdapter, but I can't get nested fields to work. As a simplified example, let's say the data is structured like this: [ { "category": { "name":…
Magnus
  • 17,157
  • 19
  • 104
  • 189
1
vote
1 answer

TThread.CreateAnonymousthread / FreeOnTerminate but then with TTask / ITask

Background Using the TThread.CreateANonymousThread(aProc:TProc) I can create a thread that destroys the thread object after the thread has terminated. (or alternatively by setting FreeOnTerminate to true for athread object). This allws the thread…
H.Hasenack
  • 1,094
  • 8
  • 27
1
vote
1 answer

Delphi: How to create a stateful connection to the RESTful server created using DelphiMVCFramework?

I use DelphiMVCFrameWork 3.2.1 for building the RESTful server for my mobile app. For getting data I always use the basic auth. and I send the username and password everytime (for example): procedure TDM.getGroupsFromServer; var Http: TIdHTTP; …
user2005049
  • 510
  • 1
  • 5
  • 26
1
vote
1 answer

How can I inspect/watch an object at a specific (absolute) address

Background I (believe) know the address of an object, and I want to keep a watch on it. I find the address by first selecting a line on the call stack (not the top one) and then taking a look at the local variables. There is an interface in there…
H.Hasenack
  • 1,094
  • 8
  • 27
1
vote
1 answer

Inherited Delphi 2007 Project and need to compile it

I've spent quite a bit of time (nearly a full day at this point) trying to figure out how to get an IDE that can compile a Delphi 2007 project. I have only found solutions using the Delphi IDE (From RAD Studio, which has a license fee of…
1
vote
0 answers

C++ Builder: Convert and print out Bitmap

I'm creating an application on Android using C++ Builder, and I need to print out (not display on screen) a Bitmap already created. To print out, I'm using "Classic Bluetooth Basic App" that Embarcadero offers. To convert I'm using this…
techie
  • 463
  • 4
  • 17
1
vote
1 answer

How to navigate between procedure / function heading and main code

If I have my cursor on a procedure or function definition, is there a quick way to navigate to the beginning of the main code (begin) for the procedure or function, skipping over all the embedded procedure and function declarations (and preferably…
JoelFan
  • 37,465
  • 35
  • 132
  • 205
1
vote
3 answers

Unit 'FMX.WebBrowser.Delegate.Cocoa' not found

I have a multidevice application developped with Rad Studio in Delphi, all work with Android, but when I want to execute the project on iOS, I have this error. This is the output : Build started 08/10/2020 15:14:20. Project…
1
vote
1 answer

ilink64 Error: Fatal: Malloc of 65536 bytes failed

I'm transfering project for C++ Builder 6 on Embarcadero RAD Studio 10.4 and change platform with x86 on x64. My project include five *.dll and two *.exe files. I success transfer four *.dll on x64 platform, but fifth *.dll report about error. When…
Range
  • 416
  • 7
  • 20
1
vote
1 answer

Access simple procedure from another unit that is NOT in the interface

I want to create a patch for the problem I reported as RSP-30853 In short, after loading my resouce DLL's I need to call sysutils.ResStringDeleteAllModules in order to flush the cached resource strings. Unfortunately this routine is NOT in the…
H.Hasenack
  • 1,094
  • 8
  • 27
1
vote
1 answer

How to debug plugin to a closed-source exe?

I am writing a plugin for the AIMP music player, which is itself closed source but has documentation for adding plugins. The interface is available in Delphi, hence I am figuring out how to use RAD Studio Delphi 10.3 Community Edition. I have…
lucidbrot
  • 5,378
  • 3
  • 39
  • 68
1
vote
1 answer

Change error message in TIdTCPClient.Connect

I'm using TIdTCPClient. It seems to be a simple thing to do, but I can't find a way to change the error message "Already connected" when I execute tcpClient->Connect(); So I set the Host, Port, and ConnectTimeout, and after all this I call the…
devs121
  • 49
  • 8