memory over flow
-
rami60i'm developing a project containing a pinging function i ping multiple ip's in sequance i check if the soket.available>0 i start recieving on soket the problem is the soket keep filling the memory causing very law vertual memory is there any way that i can reset the memory usage by the socket or do any thing to free the memory after i finish every recieve on soket or even restart the socket?????
-
rami60i'm developing a project containing a pinging function i ping multiple ip's in sequance i check if the soket.available>0 i start recieving on soket the problem is the soket keep filling the memory causing very law vertual memory is there any way that i can reset the memory usage by the socket or do any thing to free the memory after i finish every recieve on soket or even restart the socket?????
There is something seriously wrong with your code. There's nothing in a socket to modify tochange it's memory consumption habits. You said you were just pinging IP addresses? That won't fill up memory. Without seeing your code, it's impossible to tell you what's going wrong. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
rami60i'm developing a project containing a pinging function i ping multiple ip's in sequance i check if the soket.available>0 i start recieving on soket the problem is the soket keep filling the memory causing very law vertual memory is there any way that i can reset the memory usage by the socket or do any thing to free the memory after i finish every recieve on soket or even restart the socket?????
From MSDN Library: When you are finished sending and receiving data, use the Shutdown method to disable the Socket. After calling Shutdown, call the Close method to release all resources associated with the Socket.