G
Guest
Hello, can someone please give me a tip or two on the following problem:
I have a system of linked objects which stores properties of on-screen drawn objects. When i select each object on the screen the application slowly over 10-20 seconds grows slower, and the computer runs out of memory so the disk starts spinning and the garbage collector does its thing, problem is that the applicatoin requires a bit more real-time processing and the user gets a frozen screen for 2-3 seconds at a time if not more.
Should i call the following code before someone clicks on my on-screen object so that i can release any previous allocated memory?
GC.Collect();
GC.WaitForPendingFinilizers();
GC.Collect();
Is this the only way to "Hope/pray" for a speed up?
I have a system of linked objects which stores properties of on-screen drawn objects. When i select each object on the screen the application slowly over 10-20 seconds grows slower, and the computer runs out of memory so the disk starts spinning and the garbage collector does its thing, problem is that the applicatoin requires a bit more real-time processing and the user gets a frozen screen for 2-3 seconds at a time if not more.
Should i call the following code before someone clicks on my on-screen object so that i can release any previous allocated memory?
GC.Collect();
GC.WaitForPendingFinilizers();
GC.Collect();
Is this the only way to "Hope/pray" for a speed up?