//stdafx thread