Purely out of curiousity, are you using FreePascal or Delphi as your compiler?