473,508 Members | 2,374 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1429
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
3595
by: Dave Rahardja | last post by:
OK, so I've gotten into a philosophical disagreement with my colleague at work. He is a proponent of the Template Method pattern, i.e.: class foo { public: void bar() { do_bar(); } protected:...
5
15337
by: Chris | last post by:
Hi I have a scenario where I've created another AppDomain to dynamically load a DLL(s) into. In this newly loaded DLL I want to call a static method on a class. The problem arise is that I have...
4
2889
by: daniel.w.gelder | last post by:
I wrote a template class that takes a function prototype and lets you store and call a C-level function, like this: inline string SampleFunction(int, bool) {..} functor<string (int, bool)>...
7
1733
by: greenflame | last post by:
I am trying to make a matrix object. I have given it some properites. I am trying to add a method. When I call the method by Test.showDims(...) I want to only enter one input, that is the method by...
5
3396
by: Nick Flandry | last post by:
I'm running into an Invalid Cast Exception on an ASP.NET application that runs fine in my development environment (Win2K server running IIS 5) and a test environment (also Win2K server running IIS...
18
4705
by: JohnR | last post by:
From reading the documentation, this should be a relatively easy thing. I have an arraylist of custom class instances which I want to search with an"indexof" where I'm passing an instance if the...
10
3349
by: Mihai Osian | last post by:
Hi everyone, Given the code below, can anyone tell me: a) Is this normal behaviour ? b) If it is, what is the reason behind it ? I would expect the A::method(int) to be inherited by B. ...
9
5830
by: Steve Richter | last post by:
in a generic class, can I code the class so that I can call a static method of the generic class T? In the ConvertFrom method of the generic TypeConvert class I want to write, I have a call to...
3
1335
by: allendowney | last post by:
Hi All. In a complex inheritance hierarchy, it is sometimes difficult to find where a method is defined. I thought it might be possible to get this info from the method object itself, but it...
0
7120
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7323
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7039
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7494
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5626
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5050
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4706
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3192
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1553
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.