Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. memory over flow

memory over flow

Scheduled Pinned Locked Moved C#
performancehelpquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    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?????

    D A 2 Replies Last reply
    0
    • L Lost User

      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?????

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • L Lost User

        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?????

        A Offline
        A Offline
        Anthony Baraff
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups