It works without error on Windows7 Prof. 64bit, compiled with Lazarus 1.8.3 (1.8 fixes svn), fpc 3.0.4.
(off-topic: Thanks for CudaText it saved me on Mac.)
EDIT:
I compiled on Windows 7 32 Bit as 32Bit programm and tested with on Windows 7 64Bit.
Edit2:
Lazarus svn wit fpc 3.0.4. works also (your example compiled as 32bit, windows 7 64Bit)