Questions tagged [delphi-xe7]

Delphi XE7 is a specific version of Delphi released in September 2014.

Delphi XE7 is a specific version of Delphi released in September 2014. It supports development of applications covering Win32, Win64, OSX, iOS, and Android. Windows applications (32bit and 64bit) may be built using either the VCL framework or the Firemonkey (FMX) framework, whereas the rest of the supported platforms are built under the Firemonkey framework.

Always use the tag alongside this tag.

909 questions
11
votes
1 answer

Why is dynamic array "constructor" much slower than SetLength and elements initialization?

I was comparing performances between these two ways of initializing a dynamic array: Arr := TArray.Create(1, 2, 3, 4, 5); and SetLength(Arr, 5); Arr[0] := 1; Arr[1] := 2; Arr[2] := 3; Arr[3] := 4; Arr[4] := 5; I've prepared a test and…
Fabrizio
  • 7,603
  • 6
  • 44
  • 104
11
votes
1 answer

How to stop Delphi from generating a RSM file?

I just added the '64 bits platform' to my project and my Delphi (XE7) keeps generating a huge RSM file (which increases the compilation time). According to the Help this should not happen if the 'Include remote debug symbols' option is disabled. And…
Gabriel
  • 20,797
  • 27
  • 159
  • 293
11
votes
4 answers

Should variable be initialized before call to function?

When I call Functions to get a value, I usually initialize varible, in case function fails or doesn't return anything and I want to avoid dealing with uninitialized variable. I do the same for string, integer or any other type. Example for integer…
Mike Torrettinni
  • 1,816
  • 2
  • 17
  • 47
11
votes
1 answer

Why does Delphi XE7 IDE hangs and fails on out of memory exception?

I'm using Delphi XE7 IDE and it quite frequently hangs, starts to consume many system resources and fails on exceptions like: system out of memory --> ([dcc32 Fatal Error] F2046 Out of memory) external exceptions [MSBuild Error] The…
kvsbhavani
  • 135
  • 1
  • 8
11
votes
5 answers

TParallel.For performance

Given the following simple task of finding odd numbers in a one dimensional array: begin odds := 0; Ticks := TThread.GetTickCount; for i := 0 to MaxArr-1 do if ArrXY[i] mod 2 = 0 then Inc(odds); Ticks := TThread.GetTickCount -…
iamjoosy
  • 3,299
  • 20
  • 30
11
votes
1 answer

What is the meaning of AStride in TParallel.For?

TParallel.For() has an argument called AStride. In my case AStride is 2: TParallel.&For(2, 1, 10, procedure(index: Integer) begin TThread.Queue(nil, procedure begin memo1.Lines.Add(index.ToString()); …
iPath ツ
  • 2,468
  • 20
  • 31
11
votes
4 answers

Delphi conditional compilation in uses clause

I am trying to modify my Delphi 2010 code to compile in XE7 (and want to retain the ability to compile it in 2010). So in the unit that houses my mainform I added conditional directives. The following works fine in 2010 uses {$IF CompilerVersion…
ss2006
  • 207
  • 3
  • 10
11
votes
1 answer

Cant delete controls in Delphi xe7

Just installed Delphi xe7. Opened a project developed with XE7. Side note, but my first concern is that everything causes the IDE to hang, whether it be changing 'views' from Master to iPhone4, or simply dragging controls around in Design View. I…
ThisGuy
  • 1,405
  • 1
  • 24
  • 51
9
votes
2 answers

Floating point differences between 64 bit and 32 bit with Round

I know all about the approximation issues with floating point numbers so I understand how 4.5 can get rounded down to 4 if it was approximated as 4.4999999999999991. My question is why is there a difference using the same types with 32 bit and 64…
Graymatter
  • 6,529
  • 2
  • 30
  • 50
9
votes
2 answers

Managing very large codebases in Delphi using a Library of Debug and Regular DCUs I built myself

I am trying to resolve this compile error, occuring only in Debug config, and only in the case described below: [dcc32 Fatal Error] MyIndyTCPChannel.pas(22): F2051 Unit IdIOHandlerSocket was compiled with a different version of…
Warren P
  • 65,725
  • 40
  • 181
  • 316
9
votes
1 answer

VCL Styles breaks randomly

I have a control derived from TMemo. It worked nice until I used for the first time with Delphi XE7 VCL Styles. Under Delphi XE7, styles are not applied to the scroll bars of the control. If dark theme/style is used, it looks horrible, while the…
Gabriel
  • 20,797
  • 27
  • 159
  • 293
9
votes
0 answers

Best way to implement MVVM bindings (View <-> ViewModel) in Delphi?

For a multi-platform application using native components, the standard Delphi approach is no longer sufficient. So far our structure had only to parts: GUI (Forms) and Business logic. We now need to split the "Forms" part into two, which in a MVVM…
Hans
  • 2,220
  • 13
  • 33
9
votes
1 answer

Delphi VCL ShadowEffect like FMX TShadowEffect

In Firemonkey we can use a TShadowEffect to draw a nice looking shadow. This shadow also adjusts its opacity and translucency so it displays the correct component beneath it if a control is overlapping. Without TShadowEffect: With…
Tommy
  • 596
  • 6
  • 30
9
votes
0 answers

Drawing windows dropshadow on specific control

I am trying to get the same dropshadow windows uses this one: on a treeview control in my form. On my researching i found out that one can use CS_DROPSHADOW (link) to create this shadow effect on forms. Is it somehow possible to assign…
ChrisB
  • 2,497
  • 2
  • 24
  • 43
9
votes
2 answers

SearchBuf soWholeWord unexpected output

When testing StrUtils.SearchBuf with [soWholeWord,soDown] option, some unexpected results occurred. program Project1; Uses SysUtils,StrUtils; function WordFound(aString,searchString: String): Boolean; begin Result :=…
LU RD
  • 34,438
  • 5
  • 88
  • 296
1
2
3
60 61