Guys, i've just checked over the code, compiled and run it on three different machines so it works fine.