RT @brouwer_win: 2jaar oud, nieuw en stil dus volgens #KLM en goed voor de hinderbeperking. Over de Legmeer echter met 82,89 db. Weer een k… 27 minutes ago
RT @samgerrits: ‘Als wereld zijn we nog steeds niet op de goede weg. Eigenlijk is dit het beslissende moment.’
Ennnnnn we zijn er voorbij… 4 hours ago
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 awesome Spring4D library based on modern Delphi compiler support) when I mentioned
How good are you with reference to function?
I’ve an odd compiler thing throwing errors when using interfaces but not with classes.
So, for posterity:
Unlike C#, in Delphi interface methods are not compatible with method references or methods of object.
This has many manifestations, which means you can get a variety of compiler errors. I’ve listed the ones I could find below, but presume there are more and if I find more will update this post.
These are the errors you can get:
E2010 Incompatible types: ‘T’ and ‘Procedure’
E2035 Not enough actual parameters
E2250 There is no overloaded version of ‘FirstOrDefault’ that can be called with these arguments
These are the (now defunct, but used to be publicly accessible) QC and QualityPortal (needs sign on) entries (thanks Stefan Glienke and Blaise Thorn for reporting these):
The easiest way to uninstall the CollabNet SVN Client is running this small script:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
I have long since stopped using the CollabNet-branded version because it’s behind a registration wall. I found Slik SVN as a good alternative. It’s exactly the same command-line client you get from CollabNet, sans the hassle in downloading it.
I hope someone at Embarcadero enters this in QC^w QualityPortal as I’m awaiting Embarcadero response about a security issue there.
The first public showing of that demo did not include main thread protection. It originates from a session at the the 1995 Borland Developers Conference where Ray Konopka showed the below code from Bob Ainsbury.
The latest version of Delphi, Delphi 2009, has a CurrentThread class property on the TThread class.
This will return the proper Delphi thread object if it’s a native thread. If the thread is an “alien” thread, i.e. created using some other mechanism or on a callback from a third party thread, then it will create a wrapper thread around the thread handle.