Exemplo n.º 1
0
        public static void MemoryTest()
        {
            const int kCount = 100;

            for (int i = 0; i < kCount; i++)
            {
                UsdStage s = UsdStage.CreateInMemory();
                if (s == null)
                {
                    throw new Exception("Init Stage failed");
                }
                s.Dispose();

                string   tmpName = GetTempFile();
                UsdStage ss      = UsdStage.CreateNew(tmpName);
                if (ss == null)
                {
                    throw new Exception("Init Stage failed");
                }
                ss.Dispose();
                System.IO.File.Delete(tmpName);
            }
        }