473,395 Members | 1,335 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

help regarding webresponse.

Hi all.
i am having problem at a time of validatiang url.
I am using webrequest and webresponse class to get content of
particular url.
My problem is after using webrequest and webresponse class i want to
remove memory allocated by this object. am using close method and after
that i am setting it to null.
My pronlem is that at a time of setting webrequest to null sometimes it
is taking more than 10 minutes.
similary at a time of closing webresponse object it is taking large
amount of time.
This problem is not coming continouously.

This problem is coming especially when i am continuously running my
application for 2 to 3 days.

Can some one tell me why this is happening.
any help will be appreciated.
thanks in advance.

Nov 17 '05 #1
2 1571
I don't understand what the issue here is really. WebResponse
implements IDisposable and as long as you call Dispose (which should be the
same as calling Close), you don't have anything to worry about. The garbage
collector will take care of the object on the heap when it determines it
needs to be.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

<tr**************@yahoo.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
Hi all.
i am having problem at a time of validatiang url.
I am using webrequest and webresponse class to get content of
particular url.
My problem is after using webrequest and webresponse class i want to
remove memory allocated by this object. am using close method and after
that i am setting it to null.
My pronlem is that at a time of setting webrequest to null sometimes it
is taking more than 10 minutes.
similary at a time of closing webresponse object it is taking large
amount of time.
This problem is not coming continouously.

This problem is coming especially when i am continuously running my
application for 2 to 3 days.

Can some one tell me why this is happening.
any help will be appreciated.
thanks in advance.

Nov 17 '05 #2
Hi
thanks for your reply.
But i am facing problem at a time of closing webresponse by using
webresponse.close.
My program is blocking at this statement.
Can u tell me why this is happening.
thanks in advance.

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: amine | last post by:
I really need help on this please. I am writing an application for an Ipaq and I am trying to enable the application to connect to a DAV server which can is basically an HTTP server that acts like...
6
by: No_Excuses | last post by:
All, I am interested in reading the text of a web page and parsing it. After searching on this newgroup I decided to use the following: ******************************* START OF CODE...
0
by: Johann Blake | last post by:
In my need to decode a JPEG 2000 file, I discovered like many that there was no functionality for this in the .NET Framework. Instead of forking out a pile of cash to do this, I came up with the...
2
by: gizmo | last post by:
Hi, I'm using the following code to request the html source from the quoted site. ...... string url = "http://www1.soccerstand.com/"; WebRequest webRequest = WebRequest.Create(url);...
3
by: trialproduct2004 | last post by:
Hi all i am having C# application which is processing 5 urls asychronously using webrequest and webresponse classes. What i want is as soon as any url request processing is completed i want to...
2
by: kkb | last post by:
Hello! First, I'm sorry because of my english... I'll try to be understandable! I've got a strange problem using .NET 2003 C# and I haven't figured it out for a long time. I'm implementing an...
1
by: Shashank | last post by:
Hi all, I am a new member of this community. I am making a http request to a html file placed on a Apache server. On this page there is an embeded perl statement which requires reading ...
0
by: nomad | last post by:
Hi, I am using HTTPWebRequest to add a client certificate. I am then using HTTPWebRequest to POST xml to a web service which requires the attached client certificate to authenticate with their...
4
by: CindyH | last post by:
Hi - hope someone can help with this - this code was working for a while in the 'real' code and then suddenly stopped - not sure what happen. I made two simple forms on localhost to try to test...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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
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...

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.