Can I find a memory leak for a web service running in the Vistual Studio test environment?

I do not know how to debug a published web service and wonder how I might find a memory leak within the Visual Studio 2005 web service test environment?

The leak occures when my GPS Java applet cellphone reports its GPS location into the web service.  The more devices I have the faster the memory leaks.

Is it possible to get live data to feed a web service running in the test environment?

I'm a little at a loss and hope to hear some great ideas about hoew I can sking this cat.

newbiewebSr. Software EngineerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

newbiewebSr. Software EngineerAuthor Commented:
I just looked at it myself and see I am getting an array of string back from the web service.  What must I do to dispose properly of this array?
debugging memory problems is generally non-trivial ... have you used a tool like dotTrace or Ants from Red Gate to look at your memory allocations?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
you don't have to do anything to get rid of an array except stop referencing it ....


Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

Hi newbieweb! I'm not very experienced with web services, but since no one else responded, I'll do my best to help. Two questions:

1. Is this the service that inserts the database rows we were working on reading last week?

2. When you say it returns an array of strings, to what is it returning them? Is it the Java applet, or some additional .Net code?


Sorry Greg - I left it open too long.

Does your webservice have any calls to unmanaged code?
In that case you should make sure that any class calling unmanaged code implements IDisposable and disposes of the unmanaged references properly

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.