Questions tagged [delphi]

Delphi is a language for rapid development of native Windows, macOS, Linux, iOS, and Android applications through use of Object Pascal. The name refers to the Delphi language as well as its libraries, compiler and IDE which is used to help edit and debug Delphi projects.

Filter by
Sorted by
Tagged with
0
votes
0answers
3 views

Enable to free TJSONObject : memory leak

I have a TJSONObject that I want to free. In debug mode, I can see that I unload datas. But closing the app with the flag : System.ReportMemoryLeaksOnShutdown, I haver a memory leak. An idea ? ...
0
votes
0answers
7 views

Converting RESTResponse.Content into JSON Value or JSON Array Delphi

I am working with a REST-Application that is receiving an ID from a Server and I'm trying to translate the Response into a JSONValue (or best case a JSON Array), but everytime I try this: JValue := ...
0
votes
1answer
39 views

using Delphi message queue to avoid repeatedly triggering expensive operations

While playing with master-detail on relatively heavy tables, I was pleasantly surprised to notice the details section did not refresh immediately during scrolling. Instead, the refresh only got ...
0
votes
1answer
45 views

Reading MS Office BuiltInDocumentProperties in Delphi

I am trying to read specific properties in office documents, but I am having difficulties with certain properties, specifically date properties and document data properties such as no of pages, no of ...
0
votes
0answers
50 views

I need to select ODBC-driver at startup of a program so how do I detect available ODBC-version live? [closed]

I'm using mORMot in my program and this program can be running on different windows installations having different versions of SQL-server. It would therefore be handy giving the program the facility ...
0
votes
0answers
32 views

using dbgrid instead of tfdmemotable

I am trying to build a small sale system. I am at the start, I want to use dbgrid that holds all the items rows in the order, each rows contains the item name and price and qty and claculations stuff. ...
-3
votes
0answers
54 views

Making a schedule maker that combines more than 10 people schedules together [closed]

So I was asked to make a delphi program, the target of this program is that the admin input a text code that have preset when the people have the free time such as: A monday 09:00-10:00 13:00-15:00 ...
-2
votes
2answers
75 views

How do I convert a C ++ struct to delphi

I have code written in C ++ and I want to translate this code as delphi record type. My knowledge on this subject is limited so I could not achieve this. How can I translate after Union part? struct ...
0
votes
0answers
44 views

Generate QRCode and Print in Printer Thermal using ESC POS - ZIJIANG 58mm - Delphi 10.2

I'm trying to print qr code, on a thermal pos bluetooth printer in delphi, android platform (firemonkey). the printer is connected, I can print the text, but I can't generate and print the qr code, I ...
-2
votes
0answers
61 views

Debugging Access Violation in Delphi with limited options [closed]

I am trying to debug a large scale delphi project (a dozen projects, and millions of lines of code) and am running into an Access Violation somewhere in a very deep call stack, however due to some ...
0
votes
1answer
62 views

Delphi: Update multiple fields of a SQLite record

I am using the following code to update multiple fields of a specific SQLite record (WONumber = Work Order Number) aFDQuery.SQL.Clear; with aFDQuery.SQL do begin BeginUpdate; try ...
-2
votes
0answers
49 views

Calculate Profit margin [closed]

I developed a database application using Delphi and MySQL, it manages products, customers, suppliers, purchases, sales...etc As a matter of logic, a product can be bought and sold several times. In ...
1
vote
1answer
75 views

Managed record in generic type produce compile time error “Type parameter 'T' must be non-nullable value type”

I'm trying to use a managed record as data type for a generic class having a record constraint. The compiler complains: E2512 Type parameter 'T' must be non-nullable value type I made a minimal ...
0
votes
1answer
26 views

Use of TJSONAncestor.Owned to keep included Objects after free

I don't understand the help for the owned property of the TJSONAncestor Class. I want to make sure that a TJSONARRAYI add to a TJSONOBJECTis not freed when I free the TJSONOBJECT. How do I use the ...
0
votes
1answer
44 views

GDIPLUS in Delphi - string from TTnTEdit

I am trying to draw a rotated text in Arab to a paintbox, using Delphi 6. Tried different tools like GR32 and now GDIPLUS. GDIPLUS Samples work fine, I can draw the "Hello": graphics := ...

15 30 50 per page
1
2 3 4 5
3118