Quantcast
Channel: Delphi – The Wiert Corner – irregular stream of stuff
Browsing all 1440 articles
Browse latest View live

Windows Manifest Files and Delphi

An interesting read on Windows Manifest Files in Delphi [WayBack]. TL;DR: Do not let Delphi manage your manifest. All versions are either limited, or buggy, or both. Basically it’s the same as doing...

View Article


Image may be NSFW.
Clik here to view.

Not sure why, but sometimes the Delphi IDE does not allow you to toggle the...

On my research list: Not sure why, but sometimes the Delphi options display a regular application, but the IsConsole returns true because of AppType Console in the main PropertyGroup. console...

View Article


Interface methods are not assignment compatible with method references or...

Boy I wish that QC was still up and QualityPortal was publicly indexable as that would have saved me quite a bit of time tracking this down. Luckily I got help from Stefan Glienke (who maintains the...

View Article

Delphi, attributes, RTTI and the IDE

Reminder to self: [WayBack] It took me a while to address an awful IDE crash issue. If you install a design time package which uses RTTI to populate custom attributes declared in… – Baoquan Zuo –...

View Article

Delphi: do NOT use duplicate GUIDs on interfaces

One of the things when fixing bugs in an old codebase is wading through technical debt. A quick win is to get rid of duplicate GUIDs when interface portions have been copy-paste re-used: interfaces...

View Article


Firemonkey/Isometric at master · tothpaul/Firemonkey

This shows you how to do 2.5D isometric projection in Delphi using Firemonkey: [WayBack] Firemonkey/Isometric at master · tothpaul/Firemonkey. [WayBack] Isometric projection – Wikipedia. Via: [WayBack]...

View Article

Detecting if a debugger is present is different from detecting if an IDE is...

I have seen this happen in various environments: people wanting to detect if their debugger is present, but trying to detect their IDE, or vice versa. Similar reasoning is for detecting for being...

View Article

When generics and VCL controls bite you: memory overwrites when you show the...

Recently I got bitten by the 2013 reported http://qc.embarcadero.com/wc/qcmain.aspx?d=112101 (too bad the site is gone and the WayBack machine doesn’t have it archived) as a result of [WayBack] delphi...

View Article


Detecting the Delphi edition that is installed

Via [WayBack] In what ways can you detect which edition of Delphi in installed from the installed files? I’m trying to distinguish between Standard, Professional, E… – Jeroen Wiert Pluimers – Google+...

View Article


ILockable/TLockable/Lockable. Similar to IManaged in Spring4D, but provides a...

Had to use this to start solving threading issues in a project I inherited a while ago in a temporary way before doing a huge refactoring. Will likely need it in the future as well:...

View Article

Image may be NSFW.
Clik here to view.

Some notes on Testinsight Issues

So I won’t forget: [WayBack] sglienke / TestInsight / issues / #82 – Not work with active test project — Bitbucket When you have a project group that has multiple TestInsight enabled projects, the...

View Article

including enumerations and JPEG compression examples for wPDF 4 Manual:...

Since I was tracking down an issue having to to with generating DIB in a compressed PDF: [Archive.is] wPDF 4 Manual: Compression related properties Property CompressStreamMethod By modifying this...

View Article

delphi – IfThen(Assigned(Widget), Widget.Description, ‘No Widget’) doesn’t...

Very interesting question [WayBack] delphi – IfThen(Assigned(Widget), Widget.Description, ‘No Widget’) doesn’t crash. Should it? – Stack Overflow. Three important things here: depending on inlining and...

View Article


Delphi annoyance: in debug mode, no breakpoints are being adhered to, no blue...

For all Delphi Galileo versions (the BDS based Delphi versions: 8 until now), I have bumped into this annoyance: Over time, while working on an application, running it in DEBUG mode in the debugger,...

View Article

Image may be NSFW.
Clik here to view.

Debugging RTL/VCL Code with CodeSite – Dave’s Development Blog

This is so cool! [WayBack] Debugging RTL/VCL Code with CodeSite – Dave’s Development Blog. It comes down to performing CodeSite.Send(...) calls as evaluation expressions in non-breaking breakpoints....

View Article


Just found out about the SysUtils.FindCmdLineSwitch Function

I learn new things every day. So today I learned about [WayBack] SysUtils.FindCmdLineSwitch Function, which was introduced in Delphi 4, but I was still messing with ParamCount/ParamStr loops. It as not...

View Article

Image may be NSFW.
Clik here to view.

Where do you place your unit uses?

Over the years, I have had the question of where to put uses list entries a lot. Last year, there was one again from a very experienced developer: [WayBack] Where do you place your unit uses? Over the...

View Article


Getting rid of bugs: mark them as “new feature”– as cancelling a...

I have seen this happen before, but it seems to be a habit on the Quality Portal: getting rid of bugs by marking them as “new feature”: [WayBack] I’m using THTTPClient.BeginGet() to create an async get...

View Article

Does anyone have the source from the book: The Tomes of Delphi: Algorithms...

Since I need this one day: [WayBack] Does anyone have the source from the book: The Tomes of Delphi: Algorithms and Data Structures by Julian Bucknall? – John Kouraklis – Google+ [WayBack] julian m...

View Article

Delphi function result assignments before the function returns…

Eric Grange: Actually it is not that assignments of function return values can happen “when the function raises an exception” but rather than they can happen before the function returns. Note that this...

View Article
Browsing all 1440 articles
Browse latest View live