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
138
votes
8 answers

EProgrammerNotFound exception in Delphi?

In Delphi 2009, SysUtils.pas contains this in line 425: EProgrammerNotFound = class(Exception); Is this simply an easter egg or something serious? When should this exception be raised? Does it also exist in Delphi Prism and/or Free Pascal? Q: Is…
mjn
  • 35,561
  • 24
  • 160
  • 351
103
votes
1 answer

Is there a way to programmatically tell if particular block of memory was not freed by FastMM?

I am trying to detect if a block of memory was not freed. Of course, the manager tells me that by dialog box or log file, but what if I would like to store results in a database? For example I would like to have in a database table a names of…
Wodzu
  • 6,705
  • 8
  • 57
  • 99
54
votes
10 answers

Delphi 2006-2010 error: "Cannot create file C:\Users\Admin\AppData\Local\Temp\EditorLineEnds.ttr"

I am getting an error after installing Delphi 2007 (Edit: This problem occurs in all Delphi versions from 2006 to 2010) that I can not figure out and have never seen before. After restarting I can launch the program without any problems, but if I…
M Schenkel
  • 6,001
  • 10
  • 56
  • 102
38
votes
5 answers

How do I make a PNG resource?

I've got a form with a large TImage on it as a background. Problem is, this is stored directly in the DFM as a bitmap, which takes up about 3 MB. The original PNG file is ~250K. I'd like to try to reduce bloat by embedding the PNG in a resource,…
Mason Wheeler
  • 77,748
  • 42
  • 247
  • 453
36
votes
17 answers

What components and IDE add-ins do you install with Delphi?

After a clean install of Delphi, what components and IDE add-ins do you make certain that you install? What's your Delphi "rig"? Here's what I install after a clean installation: Delphi 2007 / Delphi 2010 JCL / JVCL - JEDI Code Library and JEDI…
Mick
  • 12,760
  • 9
  • 61
  • 118
33
votes
4 answers

Which variables are initialized when in Delphi?

So I always heard that class fields (heap based) were initialized, but stack based variables were not. I also heard that record members (also being stack based) were also not initialized. The compiler warns that local variables are not initialized…
Jim McKeeth
  • 37,154
  • 23
  • 116
  • 187
33
votes
11 answers

Is there, or is there ever going to be, a conditional operator in Delphi?

I kept my hands off Delphi for too long, I guess; busied myself with Java and PHP a lot over the last couple of years. Now, when I got back to doing a little Delphi job, I realised I really miss the conditional operator which is supported by both…
Peter Perháč
  • 19,614
  • 21
  • 116
  • 148
32
votes
7 answers

Converting TMemoryStream to 'String' in Delphi 2009

We had the following code prior to Delphi 2009: function MemoryStreamToString(M : TMemoryStream): String; var NewCapacity: Longint; begin if (M.Size = > 0) or (M.Memory = nil) then Result:= '' else begin if…
dmillam
  • 363
  • 1
  • 4
  • 8
32
votes
1 answer

What is TMonitor in Delphi System unit good for?

After reading the articles "Simmering Unicode, bring DPL to a boil" and "Simmering Unicode, bring DPL to a boil (Part 2)" of "The Oracle at Delphi" (Allen Bauer), Oracle is all I understand :) The article mentions Delphi Parallel Library (DPL), lock…
mjn
  • 35,561
  • 24
  • 160
  • 351
31
votes
3 answers

Delphi MSBuild Build Configurations From Command Line

Delphi 2009 uses build configurations. When you create a new project you have two default build configurations "Debug" and "Release". Now I asked myself how to automate builds using MSBuild (which is supported by Delphi since version 2007). You can…
ulrichb
  • 18,344
  • 6
  • 67
  • 87
29
votes
4 answers

How Can I Best Guess the Encoding when the BOM (Byte Order Mark) is Missing?

My program has to read files that use various encodings. They may be ANSI, UTF-8 or UTF-16 (big or little endian). When the BOM (Byte Order Mark) is there, I have no problem. I know if the file is UTF-8 or UTF-16 BE or LE. I wanted to assume when…
lkessler
  • 19,414
  • 31
  • 125
  • 196
25
votes
2 answers

Did Delphi ever get a for each loop?

I've read that Delphi was supposed to get a for each loop in Delphi 9. Did this functionality ever make it into the language? My Delphi 2009 IDE doesn't seem to recognize the for each syntax. Here's my code: procedure ProcessDirectory(p_Directory,…
Ryan
  • 6,875
  • 7
  • 50
  • 88
25
votes
4 answers

Why is DoubleBuffered disabled by default?

After creating a new form, I usually perform this ritual: Change the name into something meaningful; Type a Caption; Change the position property (DefaultPosOnly is hardly ever what users expect); Set ShowHint to true; Set DoubleBuffered to true; …
Wouter van Nifterick
  • 22,500
  • 7
  • 72
  • 117
24
votes
2 answers

How to specify MSbuild output folder?

When I execute delphi 2009 project using MSBuild command line, output always goes to C: drive C:\MyProjects>MSbuild "C:\MyTestProject\Test.dproj" /t:Build /p:OutDir="C:\Output\bin\" Why is this happening?
Pavan
  • 1,646
  • 7
  • 23
  • 45
23
votes
6 answers

Convert string to PAnsiChar in Delphi 2009

I'm converting my applications to Delphi 2009 and faced an intriguing issue with some calls that need to convert a string (wide) to AnsiString. Here's an example to demonstrate the issue I'm having: var s: PAnsiChar; ... s :=…
smartins
  • 3,658
  • 7
  • 37
  • 53
1
2 3
63 64