Exemplo n.º 1
0
        public MapObject2D()
        {
            coreMapObject = Engine.ObjectSystemFactory.CreateMapObject2D();
            chips         = new List <Chip2D>();

            var p = coreMapObject.GetPtr();

            if (GC.Object2Ds.GetObject(p) != null)
            {
                Particular.Helper.ThrowException("");
            }

            GC.Object2Ds.AddObject(p, this);
        }
Exemplo n.º 2
0
 public override void Destroy()
 {
     lock (this)
     {
         if (coreMapObject == null) return;
         GC.Collector.AddObject(coreMapObject);
         coreMapObject = null;
     }
     Particular.GC.SuppressFinalize(this);
 }