472,784 Members | 966 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,784 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 2098
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: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.