Visit site Delphi Haven

September 2011

5
votes
Vote UpVote

Converting from a Cocoa string to a Delphi string

Delphi Haven – Reading Malcolm Groves’ useful little post about retrieving special directories in OS X, I noticed he converted from Cocoa to Delphi strings by calling the former’s UTF8String function. Given Cocoa strings are already UTF-16 encoded just like Delphi strings,* this would cause a ...
Details Favorite? Off-Topic? Chris Rolliston @ 2011-09-25 23:53
4
votes
Vote UpVote

A few Mac tips

Delphi Haven – At the risk of the blind leading the blind… An OS X GUI application is conventionally ‘bundled’ or put into a special directory structure whose root has an .app extension (see here and scroll down for Apple’s documentation on what the structure actually entails). In Finder ...
Details Favorite? Off-Topic? Chris Rolliston @ 2011-09-24 19:42
9
votes
Vote UpVote

We can expect ‘frequent and regular FireMonkey updates’

Delphi Haven – … sayeth the new Delphi/RAD Studio project manager, echoing both a previous statement of his and similar words by Michael Swindell. Well, we’ll see about that, won’t we? From where I’m looking, FireMonkey is doing an excellent impression of being another Delphi for PHP. Maybe ...
Details Favorite? Off-Topic? Chris Rolliston @ 2011-09-18 18:54
5
votes
Vote UpVote

A console window that gets on with Unicode – fancy that

Delphi Haven – Like quite possibly a good proportion of people syndicated on DelphiFeeds.com, I’ve recently acquired a Mac. Being cheap, it’s only a refurbished iMac, but it looks good (and was spotless when taken out of the box). In terms of first impressions, I’ve found OS X a bit ...
Details Favorite? Off-Topic? Chris Rolliston @ 2011-09-15 08:26
9
votes
Vote UpVote

Fixing the FMX menu loop bug on Windows

Delphi Haven – I’ve discovered a very simple bug in the implementation of FMX menu loops on Windows. This bug leads to what is in effect an Application.ProcessMessages loop in VCL terms, causing a CPU spike for the duration an FMX menu is shown. To fix, copy both FMX.Platform.Win.pas and FMX.Defines.inc to ...
Details Favorite? Off-Topic? Chris Rolliston @ 2011-09-05 21:37
2
votes
Vote UpVote

Getting the XE2 setup file

Delphi Haven – While I’m about it, here’s another small XE2 installation-related tip: I bought my copy from Digital River in their capacity as the official Embarcadero store, but then had problems dowloading the setup file from them. Going over to the Embarcadero site proper, I registered for the XE2 ...
Details Favorite? Off-Topic? Chris Rolliston @ 2011-09-01 21:11
2
votes
Vote UpVote

XE2 (or more exactly, MSBuild) vs. HP notebooks

Delphi Haven – For all I know it may have been an issue with earlier versions, but I’ve just installed XE2 Pro on my HP notebook (it already had XE Starter and a few VS Expresses) and stumbled across a small issue. When attempting to compile, the following error message came up: [Error Error] Invalid ...
Details Favorite? Off-Topic? Chris Rolliston @ 2011-09-01 21:00

July 2011

1
vote
Vote UpVote

Generic linked lists redux

Delphi Haven – Do generics and typed pointers mix? Certainly, so long as you use a nested type: type TOuterType<T> = class public type PInnerType = ^TInnerType; TInnerType = record Value: T; end; end; OK, so the New/Dispose bug still holds, but that’s only a minor irritant. ...
Details Favorite? Off-Topic? Chris Rolliston @ 2011-07-31 22:42
4
votes
Vote UpVote

Interesting…

Delphi Haven – Most of it’s just a copy of the XE (or should I say XE1?) demo tree, but a couple are new: http://radstudiodemos.svn.sourceforge.net/viewvc/radstudiodemos/branches/RadStudio_XE2/Delphi/ No EXEs though! I’ll leave the Sovietology to a certain frothy blogger-cum-team of bloggers (if said ...
Details Favorite? Off-Topic? Chris Rolliston @ 2011-07-19 23:46
2
votes
Vote UpVote

Things that make you go ‘urgh’…

Delphi Haven – What’s the flaw in this test code? program Project1; {$APPTYPE CONSOLE} var Arr1, Arr2: array of array of Integer; I, J: Integer; begin SetLength(Arr1, 5, 5); for I := 0 to 4 do for J := 0 to 4 do Arr1[I, J] := I * J; Arr2 := Copy(Arr1); for I := 0 to 4 do for J := ...
Details Favorite? Off-Topic? Chris Rolliston @ 2011-07-17 09:12
2
votes
Vote UpVote

Weird in more ways than one

Delphi Haven – To illustrate an annoying limitation of Delphi generics regarding typed pointers, Lars Fosdal has recently posted some code that provides a half-working generic double linked list implementation (link). The fact it only half works is at least half the point (so to speak), but I’m not sure the ...
Details Favorite? Off-Topic? Chris Rolliston @ 2011-07-14 22:32

June 2011

3
votes
Vote UpVote

Object cloning using the high level RTTI

Delphi Haven – Someone’s probably demoed this before, and quite possibly demoed it better too, but hey, here’s my idea of generic object cloning using the high level RTTI. To be honest, in practice, I’m not sure this sort of thing – i.e., a completely generalised approach – is a very ...
Details Favorite? Off-Topic? Chris Rolliston @ 2011-06-08 23:50
0
votes
Vote UpVote

Welcome to the neighbourhood

Delphi Haven – One hour! Link here – who knows, maybe the questioner will have become worthy enough for his question to be reopened by the time you click on it.
Details Favorite? Off-Topic? Chris Rolliston @ 2011-06-07 21:10

May 2011

6
votes
Vote UpVote

The tyranny of simple tests

Delphi Haven – Last TMonitor post I promise (well, if until the ‘hotfix’ for TMonitor.Wait gets forgotten about…): it seems TMonitor’s apparent slowness in uncontended scenarios as discussed in my previous post is less than it first appeared. In fact, by tweaking my original test, I can now ...
Details Favorite? Off-Topic? Chris Rolliston @ 2011-05-29 23:27
9
votes
Vote UpVote

TMonitor redux

Delphi Haven – Rather embarassingly, it appears the wait/pulse functionality of TMonitor is hopelessly broken. That’ll teach me for trying to demo something new, eh? In my (partial) defence, I had found serious issues before, but came to believe they must have arisen from how I was originally trying to use ...
Details Favorite? Off-Topic? Chris Rolliston @ 2011-05-25 20:46
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Delphi Tage Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)