Kev #1 it does work correct, only thread variables need to be global. what the thread.mod does is get the address of the function and call that in its own thread. well the win32 version anyways.kev