Take a look at this topic: http://www.mail-archive.com/fpc-pascal@lists.freepascal.org/msg37075.html.