Author | Message | ||
---|---|---|---|
C0D3Z3R0 Pro Posts: 166 | Hi all, does anyone here know how I can clear the ram that is being used up by a VB.NET app? the app I'm making uses a lot of ram since it makes a lot of connections but I've seen apps similar that use less ram and it doesn't go up fast, thanks for any help given | ||
Meka][Meka Unstopable Posts: 700 | ok first thing is, to make a disconnect event for your sockets, then destroy or reuse them on event, and 2 u can use the garbage collection
--; M E K A ;-- | ||
bluebear n00b Posts: 32 | As Meka][Meka wrote you can use the garbage collector to free up memory. But the garbage collector does not collect os resources. Like file operations, sockets, windows fonts. Some object has a .Dispose() function you can use as well Socket.Close() Closes the Socket connection and releases all associated resources. but for some reason it do not get cleaned up like you could expect. But if you can wait un til vb.net 2005 releases. You will be able to use a object and dispose it immidately after use. |