public Cyvi(AoDisplay ad, bool record) { //this.count = count; this.record = record; if (record) { Log = new Log(); Log.Start(312, true); } this.ad = ad; this.cvQueues = new Queue<string>(); this.cinReqCount = 0; this.cinGate = false; this.hpQueues = new Queue<string>(); cinListenThread = new Thread(() => Util.SafeExecute(() => CinListenStarts(), delegate(Exception e) { if (Log != null) { Log.Logger(e.ToString()); } })); }