471,354 Members | 1,170 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 software developers and data experts.

PingSendAsync Method

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?

Feb 16 '06 #1
4 1317
That would be a good question. Does Ping sync take same?

--
William Stacey [MVP]

"Ciro" <ci*******@libero.it> wrote in message
news:r0*********************@twister1.libero.it...
| 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?
|
|
|
Feb 17 '06 #2
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]" <wi************@gmail.com> ha scritto nel messaggio
news:eT*************@TK2MSFTNGP10.phx.gbl...
That would be a good question. Does Ping sync take same?

--
William Stacey [MVP]

"Ciro" <ci*******@libero.it> wrote in message
news:r0*********************@twister1.libero.it...
| 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?
|
|
|

Feb 17 '06 #3
cc
Hi there,
Read this article and you'll understand what's happening

http://blogs.msdn.com/joncole/archiv...15/505627.aspx

Feb 17 '06 #4
Yessss!!!
Thank you guys, now it works.

"cc" <ch*****************@hotmail.com> ha scritto nel messaggio
news:11*********************@f14g2000cwb.googlegro ups.com...
Hi there,
Read this article and you'll understand what's happening

http://blogs.msdn.com/joncole/archiv...15/505627.aspx

Feb 17 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by Dave Rahardja | last post: by
4 posts views Thread by daniel.w.gelder | last post: by
7 posts views Thread by greenflame | last post: by
5 posts views Thread by Nick Flandry | last post: by
10 posts views Thread by Mihai Osian | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.