PC Review


Reply
Thread Tools Rate Thread

Calling WebService from Windows App causes Windows App to never qu

 
 
=?Utf-8?B?QnJpYW4gS2l0dA==?=
Guest
Posts: n/a
 
      10th May 2005
I created a WebService on the order of a WindowsUpdate type of functionality.
I call the following routine, and once I've done that, my Windows
Application stays around as a running process forever (or until I kill it
with task manager). This is very odd. The application does not appear to
hang, it seems to work perfectly. It even appears to exit, but looking in
task manager you can see that it stays in memory. There must be something I
have to do to properly dispose of my web service, but I'm not sure what it
is. Can anyone help? (Yes, I call the dispose method, but that doesn't
appear to do anything).

public string[] getVersions()
{
FileVersionInfo myFileVersionInfo;
string[] tempList;
string fileName;
string[] dirs = Directory.GetFiles("http:\\xxxxx\\modules");
tempList = new string[dirs.Length];
for(int x = 0; x < dirs.Length; x++)
{
myFileVersionInfo = FileVersionInfo.GetVersionInfo(dirs[x]);
fileName = dirs[x].Substring(dirs[x].LastIndexOf("\\")+1);
tempList[x] = fileName + "," +
myFileVersionInfo.FileMajorPart + "." +
myFileVersionInfo.FileMinorPart + " Build " +
myFileVersionInfo.FileBuildPart + "." +
myFileVersionInfo.FilePrivatePart;
}
return tempList;
}
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling webserivce giving Error in Windows service but WebApplication& Windows Application Successfull. nRk Microsoft C# .NET 9 10th Dec 2008 10:41 AM
Error when calling a webservice from a windows service GD Microsoft Dot NET Framework Forms 4 18th Apr 2007 11:58 PM
Problem! webservice.htc calling nonsecure webservice from a secured ssl https webpage batista Microsoft ASP .NET 1 26th Jan 2006 12:05 PM
Problem! webservice.htc calling nonsecure webservice from a secured ssl https webpage batista Microsoft ASP .NET 0 26th Jan 2006 08:13 AM
Problem! webservice.htc calling nonsecure webservice from a secured ssl https webpage batista Microsoft Dot NET 0 26th Jan 2006 08:12 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:43 PM.