Initialize active flag, Windows error