Tinkr2/4.2/TestProject/Program.cs
/// <summary>
/// Calling this method helps ensure Garbage Collection kicks in
/// If we didn't do this we'd run out of memory if we switch forms rapidly
/// You could also use static forms so they weren't created and destroyed everytime.
/// Doing so would eliminated the need for this method
/// </summary>
Calling this method helps ensure Garbage Collection kicks in
If we didn't do this we'd run out of memory if we switch forms rapidly
You could also use static forms so they weren't created and destroyed everytime.
Doing so would eliminated the need for this method
Calling this method helps ensure Garbage Collection kicks in If we didn ' t do this we ' d run out of memory if we switch forms rapidly You could also use static forms so they weren ' t created and destroyed everytime . Doing so would eliminated the need for this method
static void CleanSwitch()
        {
            if (Core.ActiveContainer != null)
            {
                Core.ActiveContainer = null;
                Debug.GC(true);
            }
        }
static void CleanSwitch ( ) { if ( Core . ActiveContainer != null ) { Core . ActiveContainer = null ; Debug . GC ( true ) ; } }
Calling this method helps ensure Garbage Collection kicks in
If we didn't do this we'd run out of memory if we switch forms rapidly
You could also use static forms so they weren't created and destroyed everytime.
Calling this method helps ensure Garbage Collection kicks in If we didn ' t do this we ' d run out of memory if we switch forms rapidly You could also use static forms so they weren ' t created and destroyed everytime .
// See if we already have a form active // Remove the active form // Now force GC to get rid of the form