just when i tought i finally understood threads i got a problem.
in the main i created mutex using:
Mutex = CreateMutex(NULL, FALSE, Mutex_Name);