Ok, solved. Did not realize in multithread environment one thread could read a variabele when other thread was just not finished filling this variabele....