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,862 other subscribers

Archive for the ‘Delphi XE3’ Category

Interesting discussion about generic Dictionaries in Delphi (via: Steve Maughan – Google+ – TObjectDictionary Advice Needed)

Posted by jpluimers on 2014/05/05

There is an interesting G+ discussion thread about generic Dictionaries in Delphi.

It covers the stock TObjectDictionary in the Generic.Collections unit, Spring4D, performance characteristics like O(1), O(log n), etc, and implementation details like fill factors and hashing algorithms.

Worth reading at Steve Maughan – Google+ – TObjectDictionary Advice Needed I’ve been using Delphi for….

Since TObjectDictionary hasn’t changed much since the introduction of generics in Delphi, this discussion is valid for at least Delphi XE and up (and probably Delphi 2010 and 2009 as well).

I’m not sure about these last ones as like Andreas Hausladen, I’m cutting back on the Delphi versions I regularly use, which for now are mainly XE6, XE3, XE and 2007).

–jeroen

Posted in Delphi, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Delphi XE6, Development, Software Development | Leave a Comment »

permissions – Delphi – setting Full Control on Registry Key – Stack Overflow

Posted by jpluimers on 2014/05/02

One of those StackOverflow gems: permissions – Delphi – setting Full Control on Registry Key – Stack Overflow.

–jeroen

Posted in Delphi, Delphi 2007, Delphi 2009, Delphi 2010, Delphi 7, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Delphi XE6, Development, Software Development | 4 Comments »

Call for help: Spring4D and Delphi MultiCast events: working for Win32, Win64 and Mac OS X x64, but Android/iOS ARM help needed.

Posted by jpluimers on 2014/04/22

Years after Allen Bauer and a few others wrote about Delphi MultiCast events, the Spring4D framework now supports MultiCast events on 3 platforms:

  • Win32
  • Win64
  • Mac OS x86

Depending on the platform, the minimum required Delphi version is this (the develop branch builds in Delphi XE6):

  • Win32: Delphi 2010 and up.
  • Win64: Delphi XE2 and up.
  • MacOSX: Delphi XE2 and up.

There are plans for support on Mobile platforms, and Spring4D needs help with that:

  • The Intel implementation is written in Assembly, and fast.
  • The Arm compiler does not allow Assembly language for various reasons.

So there is a need for an ARM solution not based on assembly in the Delphi code, preferably as cross-platform as possible. Read the rest of this entry »

Posted in Delphi, Delphi 2010, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Delphi XE6, Development, QC, Software Development, Spring4D | 1 Comment »

Raize Components 6 updates for Delphi XE6

Posted by jpluimers on 2014/04/22

Just found out that a new version of Raize Components 6 with Delphi XE6 support got released.

Raize Components 6 actually supports Delphi 2009 through XE6 (and C++ Builder and RAD Studio).

Older Delphi versions are also supported by older Raize Component versions, as Ray Konopka posted last year:

via Raize Software Support Forums • View topic – Installing multiple versions of the Raize Components.

(In the above quote, I included the links to the various trial versions).

There is also the famous Demo program download RCDemo.zip and nice videos:

via Raize Components Demo/Trial Edition.

For the dot version nitpickers, here are the current versions as of writing:     Read the rest of this entry »

Posted in Delphi, Delphi 2005, Delphi 2006, Delphi 2007, Delphi 2009, Delphi 2010, Delphi 5, Delphi 6, Delphi 7, Delphi x64, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Delphi XE6, Development, Software Development | 3 Comments »

GExperts 1.37 available for Delphi XE6..6.02, but not for Appmethod (via: Download | GExperts)

Posted by jpluimers on 2014/04/19

GExperts 1.37 (commit 875, but no tag yet) now supports Delphi XE6 and XE5, and ahost of older Delphi versions. Binary downloads are available at Download | GExperts

These were the release news items:

In addition to what is in those items, 1.37contain a substantial speed improvement and some other fixes from me (I hope this fix also will get in later) in the Grep Search.

It is likely that this will be the last GExperts that support Pre-Delphi-2007 versions (currently 2006, 2005, 8.02, 7.1 and 6.02).

It is not clear if there will be a GExperts for Appmethod, as Appmethod does not provide functioning command-line compilers like I already blogged about in Spring4D now has projects for Appmethod, but it cannot support Appmethod in the automated build engine.

You can get an Experimental GExperts version for Delphi XE6..6.02 (that includes a source formatter) from Experimental GExperts Version » twm’s blog.

From Thomas Mueller (the author of the experimental GExperts versions), there are also a few other interesting blog posts you probably will like:

–jeroen

via: Download | GExperts.

Posted in Appmethod, Delphi, Delphi 2005, Delphi 2006, Delphi 2007, Delphi 2009, Delphi 2010, Delphi 6, Delphi 7, Delphi 8, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Delphi XE6, Development, Software Development | Tagged: | 6 Comments »

delphi: idioms for building strings (via: my answer on Stack Overflow)

Posted by jpluimers on 2014/04/16

Once every while, one of your StackOverflow answers gets an edit suggestion that is really valuable.

This case it was Edwin Yip who suggested to emphasize the difference between TStringBuilder and TStringList (adding characters versus lines).

Too bad that freshly 10k user Makoto showed he hates bold emphasis, intentional property casing and post signatures by removing the added value (there is so much emphasis he could remove on other answers to warrant at least a day time job).

I know that not all emphasis is welcomed at StackOverflow, but in this case I think it added real value.

So I edited my own answer to add even more value: showing the idioms I use for building strings, and now it is time to quote it: Read the rest of this entry »

Posted in Delphi, Delphi 1, Delphi 2, Delphi 2005, Delphi 2006, Delphi 2007, Delphi 2009, Delphi 2010, Delphi 3, Delphi 4, Delphi 5, Delphi 6, Delphi 7, Delphi 8, Delphi x64, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Development, Software Development | Leave a Comment »

knowledge worker tip: adding a Google Group to #Feedly using one of its RSS feeds

Posted by jpluimers on 2014/04/15

Today I learned that each Google Group has RSS and ATOM feeds. That allows you to add them to Feedly (a great online RSS reader that won a lot of market share when Google Reader got ditched).

This is how you do it (I’m using the Spring4D group as an example).

  1. Go to the group page https://groups.google.com/forum/#!forum/spring4d
  2. On the right side, click on “About” which brings you to https://groups.google.com/forum/#!aboutgroup/spring4d
  3. Copy any of the RSS or ATOM links and add it to Feedly.

–jeroen

Posted in Delphi, Delphi 2010, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Delphi XE6, Development, Google, GoogleGroups, Power User, Software Development, Spring4D | 7 Comments »

On turning “W1025 Unsupported language feature: ‘customattribute'” into a compiler error.

Posted by jpluimers on 2014/04/10

On turning W1025  into an error [WayBack] Why is “W1025 Unsupported language feature: ‘custom attribute’ “only a warning?… – mezen – Google+:

Stefan Glienke's profile photo

+Fabian S. Biehn This question has been answered by Nick already.
However you don’t need to turn it on in ALL projects. You change it in the base configuration, tick the Default checkbox in the bottom left corner of the settings dialog and from then on every new project will have this warning treated as error. However for existing projects you have to change it retrospectively.
You can even pass this option to the commandline compiler as explained here: http://stackoverflow.com/a/360947/587106

[WayBack] compiler construction – Delphi 2009 where is the ‘treat warnings as errors’ option? – Stack Overflow

On a related note, if you are using the command line compiler (DCC32.exe) the switch is -W^ to have warnings treated as errors. If you are using this, it’s important to note that the default command shell in Windows (cmd.exe) treats the caret (^) as an escape character, so you have to use -W^^ instead if you are executing the compiler directly from the command line, a batch file or even the from the Pre-Build or Post-Build events in the IDE.

It’s also worth mentioning that you can have only certain warnings treated as errors. The switch to do this on the command line would look something like this: -W^^WARNING-NAME. You would substitute the string that is associated with the warning you are wanting to have treated as an error.


The point about -W^ being problematic within BAT files is a good one. Using -W^^ works if you are modifying the compile line directly. Otherwise, I found that using surrounding double quotes "-W^" works, for example when building an env var that contains all compiler parameters, that env var being subsequently passed to dcc32.exe. Tested with XE, XE2, XE3, XE4.

SET CompilerParams=-B -M "-W^" -U"..\Source;%dcuoutdir%;%DUnitPath%" -I"..\Source\inc" "-N0%dcuoutdir%" -DDebugMode
"%dcc%bin\dcc32.exe" %FuTFolder%ADDTests.dpr %CompilerParams% -U"%FuTSource%" %ExtraPath32%>%DCCLogFilename%
if errorlevel 1 %Alerter% %DCCLogFilename%

 

–jeroen

Posted in Delphi, Delphi 2009, Delphi 2010, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Delphi XE6, Development, Software Development | Leave a Comment »

OS X FullDebugMode support added by Sebastian Zierer (Thanks!) in FastMM / Code / Commit [r67]

Posted by jpluimers on 2014/04/10

I just discovered that almost 2 weeks ago, the FastMM code repository added support for these defines in Mac OS X in Commit [r67].:

  • FullDebugMode
  • LogErrorsToFile
  • LogMemoryLeakDetailToFile

This is great news!

Note: this is not a full FastMM release, but since the original change by Sebastian Zierer has been done about half a year ago, the code is pretty stable.

Thanks mnasman for mentioning this on Delphi Redit, and Ralf Stocker for announcing this in the Non-Tech newsgroup.

–jeroen

via: FastMM / Code / Commit [r67].

Posted in Delphi, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Development, FastMM, Software Development | 2 Comments »

DDDebug Memory Profiler heading towards 1.0 (via: Stefan Meisner – Google+)

Posted by jpluimers on 2014/04/09

Just in case his blog is not yet on DelphiFeeds, there is this interesting post by Stefan Meisner – Google+ – DDDebug Memory Profiler heading towards 1.0 Version.

A license is only EUR 79!

–jeroen

Posted in Delphi, Delphi XE3, Delphi XE4, Delphi XE5, Development, Software Development | Leave a Comment »