Ejemplo n.º 1
0
 /// <summary>
 /// Removes and destroys all tracks making up this animation.
 /// </summary>
 public void destroyAllTracks()
 {
     nodeAnimations.clearObjects();
     vertexAnimations.clearObjects();
     numericAnimations.clearObjects();
     Animation_destroyAllTracks(animation);
 }
Ejemplo n.º 2
0
        public static void destroyAllWrappers()
        {
            String filename = "Unknown";

            if (MyGUIInterface.TrackMemoryLeaks)
            {
                StackTrace st = new StackTrace(true);
                filename = st.GetFrame(0).GetFileName();
                if (widgets.WrappedObjectCount > 0)
                {
                    Log.ImportantInfo("{0} memory leaks detected in the WidgetManager.", widgets.WrappedObjectCount);
                }
                else
                {
                    Log.ImportantInfo("No memory leaks detected in the WidgetManager.");
                }
            }
            else if (widgets.WrappedObjectCount > 0)
            {
                Log.ImportantInfo("{0} memory leaks detected in the WidgetManager. Enable MyGUIInterface.TrackMemoryLeaks to see stack traces for allocation.", widgets.WrappedObjectCount);
            }

            foreach (var wrapper in widgets.WrappedObjects)
            {
                Log.Error("Memory leak detected in {0}.  Double check to make sure all Widgets of this type are.", filename);
                if (MyGUIInterface.TrackMemoryLeaks)
                {
                    Log.Error("Allocation Stack Track");
                    StackTrace st;
                    if (allocationStackTraces.TryGetValue(wrapper.WidgetPtr, out st))
                    {
                        foreach (StackFrame f in st.GetFrames())
                        {
                            if (f.GetFileName() != null)
                            {
                                Log.Error("-\t{0} in file {1}:{2}:{3}", f.GetMethod(), f.GetFileName(), f.GetFileLineNumber(), f.GetFileColumnNumber());
                            }
                        }
                    }
                    else
                    {
                        Log.Error("Widget leaked with no stack trace info available. Please enable MyGUIInterface.TrackMemoryLeaks to view this info. Make sure to enable it as early as possible.");
                    }
                }
                else
                {
                    Log.Error("No stack trace info available. Please enable MyGUIInterface.TrackMemoryLeaks to view this info.");
                }
            }
            widgets.clearObjects();
        }
 public void Dispose()
 {
     wrappers.clearObjects();
 }
Ejemplo n.º 4
0
 public void Dispose()
 {
     codecs.clearObjects();
 }
Ejemplo n.º 5
0
 public static void destroyAllWrappers()
 {
     elements.clearObjects();
     contexts.clearObjects();
 }
Ejemplo n.º 6
0
 public override void removeAllKeyFrames()
 {
     keyFrames.clearObjects();
     NodeAnimationTrack_removeAllKeyFrames(animationTrack);
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Remove all animation states.
 /// </summary>
 public void removeAllAnimationStates()
 {
     states.clearObjects();
     AnimationStateSet_removeAllAnimationStates(animationStateSet);
 }
Ejemplo n.º 8
0
 public void removeAllTechniques()
 {
     techniques.clearObjects();
     Material_removeAllTechniques(resource);
 }
Ejemplo n.º 9
0
 public void removeAllTextureUnitStates()
 {
     textureUnits.clearObjects();
     Pass_removeAllTextureUnitStates(pass);
 }
Ejemplo n.º 10
0
 public void removeAllPasses()
 {
     passes.clearObjects();
     Technique_removeAllPasses(technique);
 }
Ejemplo n.º 11
0
 public void Dispose()
 {
     sources.clearObjects();
 }
Ejemplo n.º 12
0
 /// <summary>
 /// Remove all elements.
 /// </summary>
 public void removeAllElements()
 {
     vertexElements.clearObjects();
     VertexDeclaration_removeAllElements(vertexDeclaration);
 }
Ejemplo n.º 13
0
 public void removeAllPoses()
 {
     poses.clearObjects();
     Mesh_removeAllPoses(resource);
 }
Ejemplo n.º 14
0
 public void removeAllAnimations()
 {
     animations.clearObjects();
     Mesh_removeAllAnimations(resource);
 }