Questions tagged as 'delphi'

1
answer

Error closing form with TAcroPDF in Delphi

This "blessed" component, unfortunately I need to use it, it happens that whenever I try to close the Form it closes, but always gives an AccessViolation . There is nothing in the Form besides a TAcroPDF and a Close button. The impressi...
asked by 26.03.2018 / 17:31
2
answers

Two threads executing the same function

I have a situation where in Delphi I have two threads that execute a function that pings a Firebird database. I use this to sync data from my POS (sending and receiving). But as they run at the same time sometimes a dead lock occurs in the...
asked by 11.09.2015 / 14:18
3
answers

Read XML with XMLDocument in Delphi

I have this xml, I do not know how to read and get the values. Could someone help me? <?xml version="1.0" encoding="utf-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001...
asked by 16.10.2015 / 20:59
2
answers

How to convert a String to TNotifyEvent in Delphi?

I want to change the OnTimer event of a TTimer in my project at run time, I tried as follows: Timer1.OnTimer:= ('close'); But Delphi reports this: (E2010 Incompatible types: 'TNotifyEvent' and 'string') , how can I convert String...
asked by 29.10.2015 / 01:31
2
answers

CreateDatabase Delphi VCL

How to create the database automatically if it does not exist, same in the app of Delphi Android, but I want to do with Delphi VCL. I want my first run application to automatically create the database where I'm going to run scripts to genera...
asked by 21.09.2017 / 16:03
1
answer

Why Shortstring consumes more memory than a common String

I've done an example here to see how much memory consumes each variable and I noticed that a variable of type ShortString consumes 256 while a variable of type String consumes only 4. Here's an example for verification: unit Unit...
asked by 19.05.2017 / 15:29
3
answers

Open as administrator only the first time in Delphi.

I put a method on my system to change the registry by starting it with windows, so the executable must be run in administrator mode. The problem is that every time the system starts, the application opens and shows the message asking if the user...
asked by 15.12.2016 / 14:48
2
answers

Triangle Delphi - Canvas

I want to draw a triangle in Delphi with Canvas . This pointer will serve as a pointer to a Gauge (Speedometer) as in this example: I use TPoint() to set where the pointer will point. I know the starting point, bu...
asked by 01.07.2016 / 16:26
2
answers

Code Review at compile time

I need to do an automatic Code Review on my codes. We use Jenkins which triggers compilation with some other validations every day, but at non-commercial times. As the project is very extensive and undergoes constant changes during the...
asked by 18.07.2016 / 20:07
1
answer

How to use Windows variables in Delphi?

Hello, I'm creating a project in Delphi , however, it needs to create some files, it would not give a good impression if it did this in the place where it is, so I need these files to be created in the temporary Windows folder to avoid any...
asked by 06.06.2015 / 19:27