Debugged: now working fine on Windows 7 (64bit)