All Questions

128
votes
15answers
322871 views

The application was unable to start correctly (0xc000007b)

I have a client/server app which I have been developing on a single PC. Now it needs two serial ports, so I borrowed a PC from a friend. When I build my app and try to run or debug it (whether in the...
40
votes
2answers
7247 views

Why can a WideString not be used as a function return value for interop?

I have, on more than one occasion, advised people to use a return value of type WideString for interop purposes. Accessing Delphi DLL throwing ocasional exception ASP.NET web app calling Delphi DLL...
37
votes
5answers
11789 views

Buffered files (for faster disk access)

I am working with large files and writing directly to disk is slow. Because the file is large I cannot load it in a TMemoryStream. TFileStream is not buffered so I want to know if there is a custom ...
50
votes
4answers
22127 views

Why should I not use "if Assigned()" before using or freeing things?

This question is a continuance of a particular comment from people on stackoverflow which I've seen a few different times now. I, along with the developer who taught me Delphi, in order to keep things...
9
votes
6answers
13329 views

Screen recorder

I'm interested in a library(for windows) written in Delphi/Pascal or C++ that allows me to record(to a video format) desktop screen, requirements: must be able to specify the frame rate, or at least...
50
votes
12answers
22288 views

Profiler and Memory Analysis Tools for Delphi

I recently upgraded from Delphi 4 to Delphi 2009. With Delphi 4 I had been using GpProfile by Primoz Gabrijelcic as a profiler and Memory Sleuth by Turbo Power for memory analysis and leak debugging. ...
28
votes
1answers
2785 views

How can I search for Delphi documentation?

It can be hard to find Delphi documentation using web search. Often the documentation is buried far from the top of the list of hits. For instance a Google search for delphi setlength yields this resu...
16
votes
1answers
1398 views

Why cannot take address to a nested local function in 64 bit Delphi?

AS. since closing related questions - more examples added below. The below simple code (which finds a top-level Ie window and enumerates its children) works Ok with a '32-bit Windows' target platform...
84
votes
9answers
47503 views

Are delphi variables initialized with a value by default?

I'm new to Delphi, and I've been running some tests to see what object variables and stack variables are initialized to by default: TInstanceVariables = class fBoolean: boolean; // always starts of...
35
votes
9answers
18208 views

How to detect true Windows version?

I know I can call the GetVersionEx Win32 API function to retrieve Windows version. In most cases returned value reflects the version of my Windows, but sometimes that is not so. If a user runs my app...

Previous Next