Groups | Blog | Home
all groups > c# > february 2006 >

c# : PingSendAsync Method



William Stacey [MVP]
2/16/2006 8:24:41 PM
That would be a good question. Does Ping sync take same?

--
William Stacey [MVP]

[quoted text, click to view]
| Hello, i'm trying to build a simple ping application.
| Could someone tell me why the PingSendAsync Method
| (System.Net.NetworkInformation) eats 2 MB of the pagefile each time I send
a
| ping?
|
|
|

Ciro
2/16/2006 10:28:39 PM
Hello, i'm trying to build a simple ping application.
Could someone tell me why the PingSendAsync Method
(System.Net.NetworkInformation) eats 2 MB of the pagefile each time I send a
ping?


Ciro
2/17/2006 12:00:00 AM
Yessss!!!
Thank you guys, now it works.

"cc" <charlotte_developer@hotmail.com> ha scritto nel messaggio
news:1140172071.734096.20230@f14g2000cwb.googlegroups.com...
[quoted text, click to view]

Ciro
2/17/2006 12:00:00 AM
No, the Sync method works good. I've tried running the project with a
debugger and I saw that the instances of the Ping class
(System.Net.NetworkInformation) are never disposed from the heap!!! Neither
after a GC...So, let's say 1000 ping requests - 1000 Ping objects; 10000
ping requests - 10000 ping objects....In the heap FOR EVER!!! No way, the
program will crash in half an hour!!!

Please, help me.


"William Stacey [MVP]" <william.stacey@gmail.com> ha scritto nel messaggio
news:eTW1uD2MGHA.916@TK2MSFTNGP10.phx.gbl...
[quoted text, click to view]

cc
2/17/2006 2:27:51 AM
Hi there,
Read this article and you'll understand what's happening

http://blogs.msdn.com/joncole/archive/2005/12/15/505627.aspx
AddThis Social Bookmark Button