Top "Delphi-2009" questions

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

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 …

delphi variables initialization delphi-2009
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 …

algorithm delphi encoding delphi-2009 byte-order-mark
Why does ReadDirectoryChangesW omit events?

I use ReadDirectoryChangesW to watch a specified directory and update indexing structures whenever a change is detected. I use the …

windows delphi filesystems delphi-2009 readdirectorychangesw
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? …

delphi delphi-2009 delphi-xe7
How to get a stack trace from FastMM

I've noticed in the following post that you can get a stack trace out of FastMM to show what appears …

delphi delphi-2009 fastmm
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 …

delphi compiler-errors delphi-2009
How to handle UTF-8 and ANSI conversion before Delphi 2009?

In Delphi 2009 we have: RichEdit1.Lines.LoadFromFile(OpenDialog1.FileName,TEncoding.UTF8); RichEdit1.Lines.SaveToFile(OpenDialog2.FileName,TEncoding.Unicode); How do …

delphi unicode utf-8 delphi-2009 delphi-2006
PNGs in Delphi 2009 Imagelists and Images

D2009 introduces PNG support for Images and Imagelists. However... I have an imagelist containing png images with alpha. I want …

delphi png delphi-2009 imagelist
"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:\…

delphi msbuild build-process delphi-2009
How can I set the default file format in the Delphi IDE to UTF8?

Delphi 2009 sets the default file format for new source code files to ANSI, this makes the source code platform-dependent. Even …

delphi utf-8 delphi-2009 file-encodings