Please see: http://forum.lazarus.freepascal.org/index.php/topic,24563.msg152880.html#msg152880.