Category Archives: Tips and Tricks

Tips and tricks how to avoid common mistakes or how to generally improve your code.

Converted dfm to Text Format

Today Stefan Glienke mentioned at Google+ that there are some libraries which still use the binary format for dfm files. This is an issue since it is nearly impossible to recognize the changes in your vcs. I do remember old … Continue reading

Posted in C++-Builder, Delphi, RAD Studio 10.2 Tokyo, Third Party Components, Tips and Tricks, TurboPack, Uncategorized | Leave a comment

Free Capacities

Hi all, I currently have free capacities. I’m looking for remote contract work. I’m a specialist in all Delphi versions, particularly components, SQL databases, ORM and multi-threading. — Thanks, Roman

Posted in C++-Builder, Delphi, FireMonkey, RAD Studio 10 Seattle, RAD Studio 10.1 Berlin, RAD Studio 10.2 Tokyo, RAD Studio XE5, RAD Studio XE6, RAD Studio XE7, RAD Studio XE8, Third Party Components, Tips and Tricks, Uncategorized | Leave a comment

Supports

This week I had to maintain some legacy code that uses many interfaces and supports in order to find out if a specific interface is supported:

One of the tasks I had to do is to replace the interfaces … Continue reading

Posted in Delphi, RAD Studio 10.2 Tokyo, Tips and Tricks, Uncategorized | 4 Comments

FreeAndNil

There are a lot of articles about the use and abuse of FreeAndNil but there is one point I really don’t like about FreeAndNil: It is not type-safe. Let’s have a look at the implementation:

The comment describes the … Continue reading

Posted in Delphi, RAD Studio 10.2 Tokyo, Tips and Tricks, Uncategorized | 6 Comments

Nice Approach For Exception Safe Code

Maybe everyone knows the issue with code that is not exception safe. Let’s see an example:

The function MyFunction returns an instance of an object which is normally no problem. But MyFunction creates the instance and then runs further … Continue reading

Posted in Delphi, FireMonkey, RAD Studio 10 Seattle, RAD Studio 10.1 Berlin, RAD Studio 10.2 Tokyo, RAD Studio XE5, RAD Studio XE6, RAD Studio XE7, RAD Studio XE8, Tips and Tricks | 7 Comments

RAD Studio 10.2 Tokyo and TurboPack

Maybe most of you already heard that the next release of RAD Studio will be 10.2 Tokyo. Additionally to supporting Win32, Win64, MacOS, iOS and Android RAD Studio 10.2 Tokyo will support Linux64. As always¬† I updated the TurboPack libraries … Continue reading

Posted in C++-Builder, Delphi, FireMonkey, RAD Studio 10 Seattle, RAD Studio 10.1 Berlin, RAD Studio 10.2 Tokyo, RAD Studio XE5, RAD Studio XE6, RAD Studio XE7, RAD Studio XE8, SourceForge, Third Party Components, Tips and Tricks, TurboPack, TurboPower | Leave a comment

IMAPSize

From time to time I’m making backups from my IMAP account. Therefore I’m using a small tool called IMAPSize. IMAPSize is written in Delphi 5 and the code is hosted under sourceforge. Last week it has been impossible to connect … Continue reading

Posted in Delphi, RAD Studio 10.1 Berlin, SourceForge, Third Party Components, Tips and Tricks, TurboPack | 3 Comments

EncodeString

This week I had to migrate an application from Delphi XE3 to Delphi Berlin and this application uses a Base64 encoding. Normally Base64 encoding is not difficult stuff and Delphi XE3 simply offers the function EncodeString in the unit Soap.EncdDecd. … Continue reading

Posted in C++-Builder, Delphi, FireMonkey, RAD Studio 10 Seattle, RAD Studio 10.1 Berlin, RAD Studio XE5, RAD Studio XE6, RAD Studio XE7, RAD Studio XE8, Tips and Tricks, Uncategorized | 4 Comments

GitHub or Bitbucket

I’m currently hosting the TurboPack components under GitHub but which not surprisingly supports Git. But normally I’m working with HG because of the great TortoiseHG tool. With the the help of the HGGit extension I can use TortoiseHG with Git … Continue reading

Posted in C++-Builder, Delphi, FireMonkey, RAD Studio 10 Seattle, RAD Studio 10.1 Berlin, RAD Studio XE5, RAD Studio XE6, RAD Studio XE7, RAD Studio XE8, SourceForge, Third Party Components, Tips and Tricks, TurboPack, TurboPower, Uncategorized | 7 Comments

RAD Studio 10.1 Berlin and TurboPack

Maybe most of you already heard the latest news, today RAD Studio 10.1 Berlin shipped. With the release of the version of RAD Studio I updated the TurboPack libraries. You can download the TurboPack libraries manually from the TurboPack website … Continue reading

Posted in C++-Builder, Delphi, FireMonkey, RAD Studio 10 Seattle, RAD Studio 10.1 Berlin, RAD Studio XE5, RAD Studio XE6, RAD Studio XE7, RAD Studio XE8, SourceForge, Third Party Components, Tips and Tricks, TurboPack, TurboPower, Uncategorized | 43 Comments