473,387 Members | 1,582 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,387 software developers and data experts.

HELP with WSE clean up

Hi All,
I am having trouble cleaning up after creating/calling my webservice
(WSE1.0) from COM Addin that I create for Outlook. If I shutdown Outlook
with using my webservice, Outlook shutsdown normally. If I call my
webservice then shutdown Outlook, Outlook doesnt shutdown properly and still
lingers in memory (seen in the task manager). Below is my code for calling
my webservice, is there anything I am doing wrong to clean up the
webservice, by the way, this is VB.NET, WSE 1.0, Windows XP, Office 2000

Dim proxy As MyWebService.MyProxy
Try
proxy = New MyWebService.MyProxy
If Not proxy Is Nothing Then
proxy.Timeout = System.Threading.Timeout.Infinite
proxy.Foo()
End If
Catch ex As Exception
DebugError(ex)
Finally
proxy.Dispose()
proxy = Nothing
End Try

Thanks for your help,
David
Nov 21 '05 #1
1 2126
Hi,

I tried to simulate your problem in my machine. (win2000,office2003,visual
studio 2003).

I created a AddIn for outlook.
When the outlook opens this addin calls a webservice.

When I close the outlook, the outlook shutdowns properly.

Here is the addin code.
public void OnStartupComplete(ref System.Array custom)
{
localhost.Service1 serv1 = null;
try
{
serv1 = new localhost.Service1();
serv1.Timeout = System.Threading.Timeout.Infinite;
string str1 = serv1.HelloWorld();
System.Windows.Forms.MessageBox.Show(str1);
}
catch(Exception ee)
{
System.Windows.Forms.MessageBox.Show(ee.Message );
}
finally
{
if(serv1 != null)
{
serv1.Dispose();
}
}

}
Here is the sample webservice code.

[WebMethod]
public string HelloWorld()
{
return "Hello World";
}

I find nothing wrong in the code. Is there something wrong in the webservice
code?
Can you call the webservice from some other windows client successfully?

Regards,
R.Balaji
"David" <df*****@rochester.rr.com> wrote in message
news:OV*************@TK2MSFTNGP12.phx.gbl...
Hi All,
I am having trouble cleaning up after creating/calling my webservice
(WSE1.0) from COM Addin that I create for Outlook. If I shutdown Outlook
with using my webservice, Outlook shutsdown normally. If I call my
webservice then shutdown Outlook, Outlook doesnt shutdown properly and still lingers in memory (seen in the task manager). Below is my code for calling
my webservice, is there anything I am doing wrong to clean up the
webservice, by the way, this is VB.NET, WSE 1.0, Windows XP, Office 2000

Dim proxy As MyWebService.MyProxy
Try
proxy = New MyWebService.MyProxy
If Not proxy Is Nothing Then
proxy.Timeout = System.Threading.Timeout.Infinite
proxy.Foo()
End If
Catch ex As Exception
DebugError(ex)
Finally
proxy.Dispose()
proxy = Nothing
End Try

Thanks for your help,
David

Nov 21 '05 #2

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

Similar topics

21
by: Dave | last post by:
After following Microsofts admonition to reformat my system before doing a final compilation of my app I got many warnings/errors upon compiling an rtf file created in word. I used the Help...
2
by: Jo | last post by:
I don't know if this can be done.. But here is what i am trying to do... I have a tree menu on a frameless page. I have the menu on the right hand side and a CGI web form post on the left....
1
by: wukexin | last post by:
I write my own class Cfile, I want to know what about implement ctime().Who help me? My use function ctime, I sign it with $$$. my class Cfile: #------------------------ file.h...
16
by: expertware | last post by:
Dear friends, My name is Pamela, I do not know anything about javascript, but I would like to ask if it offers a solution to this problem of mine. I have an image on a web page within a css...
1
by: audiopro | last post by:
I am having some trouble here, and my brain is running on empty. I am not an expert ASP coder, so forgive me for what is probably sloppy code, and not the best... At any rate, I have created the...
3
by: Andre Doreid Berro | last post by:
Greetings All I have requested help before and I really need your help in this. I am working on an Access database of contacts. I have plenty of records but plenty of them are almost...
3
by: BobAtUnisys | last post by:
After uninstalling Visual Studio 2005 Beta2, installing Visual Studio 2005 RC1, uninstalling RC1 and reinstalling Beta2 I am getting the following error: When I try and create a class I get a...
1
by: Robert | last post by:
Vb.Net Make dll that contain one function. Help Please. I would like to call a function from different applications. I think i have to make a dll. I have Visual Basic.net 2003 Standard...
1
by: theflyingminstrel | last post by:
Hi, I’m having some trouble with a Javascript code, and I was wondering if anyone can help: I am trying to build a price estimator that has multiple fields. I would like the first two fields to...
4
by: rsaharia | last post by:
Hello All, I need help with this particular .pl file I picked up from http://www.veritools-usa.com/xnf2vhdl.htm What it's supposed to do is really convert an xnf file to a vhdl file. I need it for...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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
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,...

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.