delphi-10.2-tokyo Questions
1
I just faced a strange compiler error when trying to define nested generic record.
Nesting works fine with classes and interfaces, but not with records somehow.
type
TRec<T> = record
Valu...
Southsouthwest asked 18/4, 2018 at 8:17
1
Solved
How can I get read_phone_state permission at runtime to get IMEI number?
if not HasPermission('android.permission.READ_PHONE_STATE') then
begin
//ASK AND GET PERMISSION ?
end;
function TF...
Rancidity asked 27/9, 2017 at 16:10
1
Solved
The following code which attempts to convert a value well beyond the double precision range
StrToFloat('1e99999999')
correctly reports an incorrect floating point value in Delphi 10.2r3 with the...
Hessian asked 9/4, 2018 at 15:14
0
Delphi 10.2 latest build 2004, win x64 VCL app.
Trying to debug my large multithread appication I faced lots of $C00000005 exceptions in strange places.
Attepmpts to narrow the problem have lead m...
Bioscopy asked 11/3, 2018 at 18:13
1
Solved
I am using Delphi 10.2 Tokyo, trying to download some information from a web server.
I pass the command URL https://poloniex.com/public?command=returnCurrencies through this function using Indy 10...
Francisco asked 26/2, 2018 at 8:50
2
Solved
After changing to FireDAC I have trouble getting this code to work on MSSQL/Oracle:
with DataFormsettings do
begin
Close;
if Params.Count=0 then FetchParams;
Params.ParamByName('TT_EMP_ID').Asi...
Elizbeth asked 6/12, 2017 at 11:17
2
Solved
What is the basic difference between IntToStr() and Integer.ToString() when converting an Integer to a string. Which one is faster?
var
VarInt: integer;
VarStr: string;
begin
VarInt := 5;
VarS...
Viperine asked 27/11, 2017 at 18:51
0
It appears as though there may not be a user solution without a Delphi Tokyo fix, but it seems worth asking.
The simplest way to make this AV reproducible.
Start a new VCL project.
Change Platf...
Shapeless asked 8/11, 2017 at 19:10
1
Solved
I wish to make a fix to StyleUtils.inc in Delphi Tokyo. My project is linking with runtime packages.
My app is 64-bits and so I would like to rebuild the vcl250.bpl in the ..\Redist\win64 director...
Conventioneer asked 7/11, 2017 at 20:0
1
Solved
I'm working on porting a set of paradox tables to SQLite. In order to do so, I created a test application that simulates (somewhat) the current usage scenario: multiple users accessing the same DB ...
Tachyphylaxis asked 1/11, 2017 at 12:30
2
Solved
I just installed Delphi 10.2 Release 1. When I recompiled my applications and ran them, I get a lot of memory leaks. I had no memory leaks with 10.2 (without the update). I made no changes to the c...
Examen asked 9/8, 2017 at 10:56
1
Solved
I have a TFDConnection to a FireBird database for which I apply Data type mapping for backward compatibility with a previous data access technology (SQLDirect):
with FormatOptions.MapRules.Add do ...
Enlil asked 26/9, 2017 at 13:13
2
Solved
I open a TFDConnection for MS SQL Server with parameters:
DriverID=MSSQL
Password=test
User_Name=test
Server=VS2003-2008
Database=test
Single Connection=TRUE
Max Cursors=256
USE OLEDB=TRUE
I the...
Cubbyhole asked 26/9, 2017 at 14:9
1
Solved
After upgrading to 10.2 Tokyo one of third-party components started throwing a lot of exceptions. Debugging showed problematic part of code, that can be represented by this (hopefully) minimal code...
Graeco asked 21/9, 2017 at 16:54
0
I have created a simple FMX form (in Delphi Tokyo 10.2.1) with 3 controls on it:
TLayout (LayoutKbd) - aligned to the bottom of the screen. Height 1.
TRectangle - aligned to bottom (above the TLa...
Probative asked 6/9, 2017 at 4:30
1
Solved
Developing with RAD Studio (Delphi) v10.2.1 (Tokyo release 1)
on Windows 10 "Creators Update" 64bit, but 32bit development.
The application is VCL with multiple background threads, each using Indy...
Chaussure asked 31/8, 2017 at 14:8
1
Solved
My Delphi Tokyo 10.2.1 IDE just crashed. On restart I get the prompt:
RAD Studio has recovered the following files. Save the ones you wish to keep.
A file compare shows that at that moment t...
Manny asked 17/8, 2017 at 13:35
1
Solved
Reading the Expert Delphi book I have found something that I cannot understand. The author has created an unit with this code:
IToDoData = interface //CRUD
function ToDoCreate(aValue: TToDo): in...
Indicative asked 13/8, 2017 at 19:47
1
Solved
I looked at the ASM code of a release build with all optimizations turned on, and here is one of the inlined function I came across:
0061F854 mov eax,[$00630bec]
0061F859 mov eax,[$00630e3c]
0061F...
Lansquenet asked 26/7, 2017 at 16:35
1
Solved
I am in the process of upgrading code from Delphi 10 Seattle to Delphi 10.2 Tokyo and get a lot of H2077 hints Value assigned to ... never used on assignments.
(Even in places where these were expl...
Rodeo asked 18/7, 2017 at 14:58
© 2022 - 2024 — McMap. All rights reserved.