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