Questions tagged [delphi-xe8]

Delphi XE8 is a specific version of Delphi released in April 2015.

Delphi XE8 is a specific version of Delphi released in April 2015.
It supports development of applications covering , , , (both 32 and 64-bit), and . Windows applications may be built using either the framework or the (FMX) framework, whereas the rest of the supported platforms are built under the Firemonkey framework.

Always use the tag alongside this tag.

494 questions
38
votes
1 answer

Delphi XE8 bug in TList, need workaround

After upgrading to XE8 some of our projects start to break data. Looks like a bug in TList realization. program XE8Bug1; {$APPTYPE CONSOLE} uses System.SysUtils, Generics.Collections; type TRecord = record A: Integer; B: Int64; …
BofA
  • 823
  • 7
  • 16
29
votes
1 answer

How can I disable Castalia in XE8?

Suppose that I wish to disable the newly integrated Castalia that is introduced in XE8. How do I go about doing that in a clean way? I cannot see anything on the Castalia menu that allows me to disable it by setting one single option. Reasons why…
David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490
14
votes
2 answers

Delphi Rest.JSON JsonToObject only works with f variables

I'm using Delphi XE8. I was just looking at the REST.Json ObjectToJsonString() and JsonToObject() calls. Mainly attempting to do something like this: How to convert an object to JSON and back with a single line of code I noticed that I could only…
Dangas56
  • 849
  • 1
  • 8
  • 32
12
votes
2 answers

How to reset the download when the GetIt package manager fails?

I tried to download the OmniThread lib via GetIt when Delphi crashed. Other packages downloaded, compiled and installed just fine, so I guess it's a once off. Now GetIt refuses to install OmniThread, because it sees the partial download, assumes all…
Johan
  • 74,508
  • 24
  • 191
  • 319
12
votes
3 answers

How can I configure the new Delphi XE8 Editor begin-end visual cues?

The Delphi XE8 editor has visual cues so that you know which begin goes with which end. In our team, we have the convention of always put the begin on the same line as the owner clause. Is there any way to have the visual cue aligned with the…
Pep
  • 1,957
  • 2
  • 24
  • 40
11
votes
1 answer

Delphi - How to correctly register a graphic class since XE8?

I'm writing a Delphi package, which provides a new custom TGraphic object, allowing to read a new image format in VCL components like TImage. I originally developed this package with RAD Studio XE7, and it worked well. However I migrated recently to…
Jean-Milost Reymond
  • 1,833
  • 1
  • 15
  • 36
11
votes
2 answers

Checking Windows Version on W10

Does anyone know if TOSVersion.Name still works on Windows 10? I have a vcl application that has a form show event that gets the operating system details and displays them in a TMemo box using TOSVersion record from SysUtils. with mmoOSInfo.Lines do…
ADev75
  • 111
  • 1
  • 5
10
votes
1 answer

Using custom styles shows invalid characters when right-clicking a file in TOpenDialog

See steps below to reproduce. Works well in XE2 but not XE8. Create a new VCL Forms Application - Delphi Place a TButton and a TOpenDialog on the form In the button OnClick event call OpenDialog1.Execute Run the program, open the file dialog, and…
Thomas
  • 375
  • 1
  • 2
  • 11
9
votes
1 answer

Using own class as a type parameter constraint in class declaration

I have the following declaration of a class in Delphi XE8: TestClass = class; TestClass = class function test(supplier: TFunc): T; // Compiler error end; Which throws the following compiler error: E2086 Type 'TestClass' is not…
overactor
  • 1,759
  • 2
  • 15
  • 23
9
votes
2 answers

How can I capture keyboard status when my application doesn't have the focus?

My girlfriend's new laptop doesn't have indicator LEDs for NumLock and CapsLock, so I wrote a small program which show their status on screen: procedure TForm1.Timer1Timer(Sender: TObject); var KeyState: TKeyboardState; begin …
Joris Groosman
  • 771
  • 8
  • 23
8
votes
2 answers

Incompatible types: 'PAnsiChar' and 'PWideChar'

I am very new in delphi XE8. I have this following code which is from my delphi version 6 and I want to run it in delphi XE8. 1. function UTF8ToStringLen(const src: PChar; const Len: Cardinal): widestring; 2. var 3. l: Integer; 4. begin 5. …
ErenRavenHeart
  • 281
  • 3
  • 6
  • 15
8
votes
1 answer

Delphi XE8 gracefully handle ETetheringException at application startup

The Delphi app tethering manager reserves 20 ports in the range from 2020-2039 to start up its communication threads. I wanted to find out what happens, when the 21st application is started on the same computer. It turns out that this application…
Lübbe Onken
  • 526
  • 2
  • 12
8
votes
1 answer

Length() vs Sizeof() on Unicode strings

Quoting the Delphi XE8 help: For single-byte and multibyte strings, Length returns the number of bytes used by the string. Example for UTF-8: Writeln(Length(Utf8String('1¢'))); // displays 3 For Unicode (WideString) strings, Length returns the…
ZzZombo
  • 1,082
  • 1
  • 11
  • 26
7
votes
3 answers

Invalid ImageList Index error [Delphi]

This window appear all the time when I change Delphi's tab 'Code' to 'Design'. How can I fix this problem?
Diego Bittencourt
  • 595
  • 10
  • 28
7
votes
3 answers

How can I get a TEdit's canvas in Delphi?

I want to shorten a filename to fit in a TEdit, something like Edit1.Text := MinimizeName(FileName, Edit1.Canvas, Edit1.Width); Unfortunately this doesn't compile because a TEdit does have a Canvas property directly. The canvas is needed for its…
Joris Groosman
  • 771
  • 8
  • 23
1
2 3
32 33