• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 329
  • Last Modified:

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.

thanks,
newbieweb
0
newbieweb
Asked:
newbieweb
3 Solutions
 
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?
0
 
gregoryyoungCommented:
debugging memory problems is generally non-trivial ... have you used a tool like dotTrace http://www.jetbrains.com/profiler/ or Ants from Red Gate to look at your memory allocations?
0
 
gregoryyoungCommented:
you don't have to do anything to get rid of an array except stop referencing it ....

Cheers,

Greg
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

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

Jim

0
 
JimBrandleyCommented:
Sorry Greg - I left it open too long.

Jim
0
 
DabasCommented:
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

Dabas
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now