Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / September 2006

Tip: Looking for answers? Try searching our database.

Excel hangs on automation add-in worker thread

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jim Cross - 17 Sep 2006 14:49 GMT
Hi all,

I've got an automation add-in which calls a web service and returns the
results.
As the web service may take an arbitrary time to return the response, I make
the call in a worker thread, and use workerThread.Join(timeout) in the main
thread to apply a timeout. If the timeout occurs, I throw a TimeoutException,
otherwise I return the result.
However, this often hangs Excel if the web service doesn't respond within
the timeout period - the main thread doesn't return after the specified
timeout period, and Excel stops responding, as does the Windows task bar.
When I run exactly the same thing outside of Excel it works perfectly.

Any ideas as to why it could be hanging Excel, but work fine outside of
Excel?

Thanks,

Jim
jimcross1981@googlemail.com - 18 Sep 2006 12:15 GMT
A bit more information about this...

The automation add-in makes a call to a C# component which just wraps a
COM call, which makes the web service request.
Is there a chance this COM object could be interfering with Excel in
some way? CPU and memory usage are both fine.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.