public void GameOnePro() { lock (this) { int tnum = DBHelper.RunProc("sp_CheckGame"); if (tnum <= 0) { Manage_T_Game mtg = new Manage_T_Game(); mtg.CreateGameOne(); } Application.Lock(); Application["GameOneTimer"] = tnum.ToString(); Application.UnLock(); } }