or
Hello,
we have programed a class library, that has too big memory usage. We have disposed explicit all unmanaged resources like files. We have already taken a look with a memory profiler and its seems the problem is that the GC doesnot clear up the memory or the memory gets defragemented (there are a lot of small pieces of memory and .net allocates always new memory instead of reusing the small free pieces of memory). The process goes up to 2 GB RAM usage, but such amount of memory is never used / needed.
Note: Its a multi-threaded application.
I am out of ideas, what I can try to get the process smaller. All ideas will be appreciated!
Thanks in advance !!
Best regards
Andreas| RadLabel rl = new RadLabel(); |
| rl.Text = This is a test; |
| rl.Location = new Point(20, 20); |
| // rl.Size is (0,0) at this point |
| this.Controls.Add(rl); |
| // now rl.Size is correctly showing (67, 14) in this test |