The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,854 other subscribers

Archive for the ‘Delphi’ Category

The ARC vs non-ARC situation adds yet another layer of complexity to creating cross platform code…

Posted by jpluimers on 2019/12/10

Interesting rant on the Delphi cross platform situation, for which this is a reminder to see how the current situation is after 2.5 years: [WayBack] The ARC vs non-ARC situation adds yet another layer of complexity to creating cross platform code. The Linux compiler uses ARC – while Windows and OSX don’t… – Lars Fosdal – Google+

–jeroen

Posted in Delphi, Development, Software Development | 2 Comments »

RAD Studio Custom Editor Sub-views – Dave’s Development Blog

Posted by jpluimers on 2019/12/05

This is a reminder to myself to checkout [WayBackRAD Studio Custom Editor Sub-views – Dave’s Development Blog and see if his [WayBack] Browse and Doc It plugin now supports the editor sub-views.

He also has a great free tool for Delphi: [WayBack] IDE Explorer – Dave’s Development Blog

–jeroen

Via:

Read the rest of this entry »

Posted in Delphi, Development, Software Development | Leave a Comment »

Since RAD Studio 10.2.2 introduced IDE theming, are there any guides…

Posted by jpluimers on 2019/12/04

Reminder to self to check if documentation became available: [WayBack] Since RAD Studio 10.2.2 introduced IDE theming, are there any guides on supporting IDE theming for third-party plugins? (Light/Dark/Custom VCL Styles) – Baoquan Zuo – Google+

–jeroen

Posted in Delphi, Development, Software Development | Leave a Comment »

Thomas Mueller’s Open Source Projects

Posted by jpluimers on 2019/12/03

Since Thomas has been moving projects to OSDN, he now keeps a list of which one is where at [WayBack] My Open Source Projects – twm’s blog

via:

–jeroen

Posted in Delphi, Development, Open Source, Software Development | Leave a Comment »

delphi – Spring4D: Why is list of type TObjectList freed automatically after iteration? – Stack Overflow

Posted by jpluimers on 2019/11/28

A nice question and even nicer answer at [WayBack] delphi – Why is list of type TObjectList freed automatically after iteration? – Stack Overflow.

It comes down to the Spring4D collection classes expecting to be accessed using interface references because they descend from TInterfacedObject which also favours interface references over object references.

If you access them solely using object references, they start out with a reference count of 0 (zero). If an operation then first increases that to 1 (one), then decreases it back to 0 (zero), the collection instance gets freed.

A few nice tips and (sometimes opposing) opinions from the question/answer thread and the referencing G+ thread [WayBack] What do you think, +Stefan Glienke? ##Spring4D – Agustin Ortu – Google+ make them well worth reading.

Some:

  • Instead of TObjectList<TFuu>.Create, you should use TCollections.CreateObjectList<TFuu>.
    This way, you only need Spring.Collections in your uses clause
  • interface-only usage should be enforced by hiding the classes in the implementation, exposing only interfaces
  • The functions of TCollections only return interface references and – more importantly – allow for code folding starting with Spring4D 1.2.
  • Hiding the classes in an implementation part is not possible because then this would break any possibility to inherit from these classes and extend them (as I know people do).
  • Never use object references to classes that inherit from TInterfacedObject because the reference counting can kick in and destroy your instance anywhere (or manually call _AddRef/_Release).
  • if you want to have classes, then use System.Generics.Collections

–jeroen

Posted in Conference Topics, Conferences, Delphi, Development, Event, Software Development | Leave a Comment »

Delphi: IOTASourceEditor uses UTF8, so conversions are needed to/from regular strings

Posted by jpluimers on 2019/11/27

Some important points from [WayBackGo straight to JAIL! DO NOT Pass GO! DO NOT Collect £200 – Dave’s Development Blog.

The most important one is that the IOTASourceEditor (which is hardly documented in the docwiki) uses UTF8, so conversions are needed to/from regular strings.

The other is that by now any Unicode letter can be used as part of an Object Pascal identifiers so if you match, you need to take that into account.

Note that in practice using non-ASCII Unicode letters still fails with a lot of tooling (not just limited to Object Pascal), so be careful with those.

–jeroen

via: [WayBack] Go straight to JAIL! DO NOT Pass GO! DO NOT Collect £200  – David Hoyle – Google+

Posted in Delphi, Development, Software Development | Leave a Comment »

GitHub – NickRing/Delphi-Shortcut-Finder: Shows/find keyboard short-cuts have be assigned, that may be conflicting.

Posted by jpluimers on 2019/11/26

Cool tool: [WayBackGitHub – NickRing/Delphi-Shortcut-Finder: Shows/find keyboard short-cuts have be assigned, that may be conflicting.

Via: [WayBack] I need some help from anyone who knows RTTI better than me. I’m writing an OTA tool to list all the actions or keybindings that are associated with a s… – David Hoyle – Google+

David has an excellent series of blog posts on writing experts around his tool [WayBack] IDE Explorer – Dave’s Development Blog.

–jeroen

Posted in Delphi, Development, Software Development | Leave a Comment »

Scopes and names can really be deceiving. A classes in a hierarchy can have members with identical names…

Posted by jpluimers on 2019/11/21

Examples like the one below from [WayBack] Scopes and names can really be deceiving. A root class and a descendant class can both have public fields, properties and methods with the same name… – Lars Fosdal – Google+ used to be part of the “language day” during my 5 day Delphi introductory courses.

Maybe I should find back more of those from the days, brush them up a little, then post them in a repository.

The thread has some nice references to tools that give better warnings and comparisons with other languages.

Anyone wanting to assist with that?

Example code

Read the rest of this entry »

Posted in Delphi, Development, Software Development | Leave a Comment »

Any idea what exactly mean …licensed to test ??? My Delphi is…

Posted by jpluimers on 2019/11/20

Your Delphi “licensed to” might be totally different from what it is actually licensed to.

From [WayBack] Hello people, any idea what exactly mean …licensed to test ??? My Delphi is registered with a valid account, subscription, serial number and so on. – Dobrin Petkov – Google+, at least these sources might be used different from the actual licensee name:

  • the VLAN name
  • the Windows username of the one that installed it
  • the Windows licensee

–jeroen

Posted in Delphi, Development, Software Development | Leave a Comment »

[Delphi] Delphi JSON Reformatter (text or html output) – Pastebin.com

Posted by jpluimers on 2019/11/19

I might need this in the future from Delphi: [WayBack] [Delphi] Delphi JSON Reformatter (text or html output) – Pastebin.com

Via [WayBack] I wrote a function to make JSON more readable, and naturally I wonder if I missed something crucial so that it eventually will break? There are probabl… – Lars Fosdal – Google+

–jeroen

Posted in Delphi, Development, Software Development | Leave a Comment »