Questions tagged [delphi-2009]

Delphi 2009 is a reference to a specific version of Delphi. Delphi 2009 was released in August 2008, and is available as a stand alone product, or as part of RAD Studio 2009.

Delphi 2009 is a reference to a specific version of Delphi.

Delphi 2009 was released in August 2008. Delphi 2009 is available as a standalone product, or as part of RAD Studio 2009.

Delphi 2009 codename is Tiburón.

Some of the major features of the Delphi 2009 release include:

  • The change from ANSI strings to Unicode strings as the default string type.
  • Introduction of Parameterized Types or "Generics".
  • Anonymous functions.
  • Dropping support for the Delphi for .NET personality, which was replaced in Embarcadero's product line by Delphi Prism using RemObject's Oxygene compiler for .NET Support.

Delphi 2009 was preceded by Delphi 2007 and succeeded by Delphi 2010.

956 questions
16
votes
5 answers

Can I determine the order in which my units have been initialized?

I am hunting a bug which might be connected to unit initialization order. Is there a way to see which initialization section was executed when? I need to know the order. This is during debugging, so I have the full power of the Delphi IDE, in my…
16
votes
1 answer

Step by step upgrade of Indy 10 in Delphi 2009

Can someone help in telling the details on how to uninstall Indy 10 and install the latest build? I found it http://indy.fulgan.com/ZIP/IndyTiburon.zip There is a similar question, but not a satisfying answer, just some comments from the user who…
LaBracca
  • 13,941
  • 34
  • 129
  • 224
16
votes
3 answers

Delphi 2009 where is the 'treat warnings as errors' option?

In Delphi 2009 whereabouts do you turn on the option to treat warnings as errors?
Jamie
  • 3,130
  • 2
  • 23
  • 35
15
votes
2 answers

Access Violation in function CreateProcess in Delphi 2009

In my program I've the following code: //Code if not CreateProcess(nil, NonConstCmd, nil, nil, True, NORMAL_PRIORITY_CLASS or CREATE_NEW_PROCESS_GROUP, nil, PCh, SI, P) then //Code And I keep getting Access violation error. By the way, in…
vralex
  • 221
  • 3
  • 7
15
votes
6 answers

When and Why Should I Use TStringBuilder?

I converted my program from Delphi 4 to Delphi 2009 a year ago, mainly to make the jump to Unicode, but also to gain the benefits of all those years of Delphi improvements. My code, of course, is therefore all legacy code. It uses short strings that…
lkessler
  • 19,414
  • 31
  • 125
  • 196
15
votes
8 answers

Faster DirectoryExists function?

I use DirectoryExists (const PathName : String); to check if a directory is reachable from a computer or not. But if the directory does not exist and the path name is a network path, i.e. \\computer1\Data the method takes a very long time to…
jpfollenius
  • 15,826
  • 9
  • 83
  • 148
15
votes
18 answers

Recommendation needed for good database for Delphi desktop app

I am creating a desktop application written in Delphi and I am looking for a database for my application. I'm a bit overwhelmed by the number of available options. I'd really appreciate some recommendations and insights from other developers based…
TheSteven
  • 860
  • 8
  • 22
14
votes
1 answer

How to verify SOAP signature w/ Delphi 2009?

I'm using the Clever Internet Suite in D2009 to sign a SOAP message and need a way to verify the signed document locally. The server keeps bouncing the SOAP message with the error "Hash values do not match". I have to manipulate the document…
Ralph Krause
  • 141
  • 2
14
votes
5 answers

Delphi: Required package not found

I'm trying to build 3 packages, A, B and C. A defines some base classes that are used in B and C. I've got all 3 of them in the same project group, all set up to output to the same custom BPL output folder. This folder is in the search path for B…
Mason Wheeler
  • 77,748
  • 42
  • 247
  • 453
14
votes
4 answers

Can I use a closure on an event handler (ie, TButton OnClick)

If I try to use a closure on an event handler the compiler complains with : Incompatible types: "method pointer and regular procedure" which I understand.. but is there a way to use a clouser on method pointers? and how to define if can? eg :…
Majin Magu
  • 434
  • 7
  • 12
14
votes
4 answers

Delphi applications considered 'dangerous' by Google Chrome

I often produce mathematical software in Delphi 2009, and publish it on my web site. However, the last year or so, Google Chrome has started to consider a small (but increasing!) number of my EXEs 'harmful', and Google Chrome refuses do download…
Andreas Rejbrand
  • 95,177
  • 8
  • 253
  • 351
14
votes
2 answers

"ERROR MSB4040 There is no target in the project" when using msbuild+Delphi2009

I'm trying to automate the build of a project in Delphi 2009. I'm using msbuild with .net 3.5 I simply call: Z:\Server>C:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild "BestSellerAppServer.g roupproj" /target:Build And get this: Build started…
mamcx
  • 14,839
  • 22
  • 90
  • 170
14
votes
1 answer

Using the `in` keyword causes "E1012 Constant expression violates subrange bounds" in Delphi

I've come across some rather unusual behaviour in a bit of Delphi code. When using the in keyword to check if an item is in a constant array, I get the following compilation error: E1012 Constant expression violates subrange bounds The constants…
Polynomial
  • 25,567
  • 8
  • 75
  • 106
14
votes
11 answers

How to increase the startup speed of the delphi app?

What do you do to increase startup speed (or to decrease startup time) of your Delphi app? Other than application specific, is there a standard trick that always works? Note: I'm not talking about fast algorithms or the likes. Only the performance…
Olaf
  • 336
  • 3
  • 8
13
votes
1 answer

Interfaces with Generics - Setting to NIL

I am trying to implement clear in the following example code in Delphi 2009. interface ... TFoo = class(TObject) FField : T; procedure Clear; end; ... implementation ... procedure TFoo.Clear; begin // Line Below…
Robert Love
  • 11,881
  • 2
  • 47
  • 77
1 2
3
63 64