Outlook hangs

Add-in Express™ Support Service
That's what is more important than anything else

Outlook hangs
 
Thomas Reinberger




Posts: 7
Joined: 2005-03-15
Hi,

I finally got my addin running by setting up the project again. I'm now using the office.dll from afalina (interestingly also found in the GAC - ist that correct?) and the Interop.Outlook dll from afalina which I found in one of the outlook example projects.

In my addin, I have an eventhandler for the ExplorerFolderSwitch event. When I start outlook and switch the folder, the new folder content is beeing displayed - but then outlook hangs without any remarkably cpu consumption.

I want my addin at least to be also compatible with ol XP and even better would be compatibility with ol 2000. on my dev machine, I've installed ol 2003 sp1. When using the ol 2003 pia, everything works fine...

Any suggestions?

Kind regards,
Thomas Reinberger
Posted 21 Jun, 2005 05:22:14 Top
Jonathan Dorling


Guest


i get the same think when i run from a button a shell command with outlook hangs without any remarkably cpu consumption but my shell command program goes up to about 100% ever when the sheel program is notepad.exe
Posted 21 Jun, 2005 05:30:12 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hi Thomas.

I want my addin at least to be also compatible with ol XP and even better would be compatibility with ol 2000. on my dev machine, I've installed ol 2003 sp1. When using the ol 2003 pia, everything works fine...

You do everything correct. To make your add-in compatible with Outlook 2000 and higher you need to use Interop assemblies for Office 2000. You can generate them in VS or use Interop assemblies from our ADX examples.

In my addin, I have an eventhandler for the ExplorerFolderSwitch event. When I start outlook and switch the folder, the new folder content is beeing displayed - but then outlook hangs without any remarkably cpu consumption.

Try to add the try...catch statement in your code to display the error message.

Thomas, can I look at your code in the ExplorerFolderSwitch event?
Posted 21 Jun, 2005 07:03:24 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hi Jonathan.

AFAIK Aleksey has tested your project and all works. Probably the cause of the error is in your environment. Please do the following:

1. Create a new Windows Application for VB.NET.
2. Add a button to the form.
3. In this button handler, add the code that doesn't work with you
4. Run the application.

Does it work?


Posted 21 Jun, 2005 07:14:29 Top
Jonathan Dorling


Guest


It it does work and nothing hangs without any remarkably cpu consumption
Posted 21 Jun, 2005 07:23:10 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Jonathan, did you debug your code step by step in the VS debugger?
Where exactly does Outlook hang?
Posted 21 Jun, 2005 07:31:03 Top
Jonathan Dorling


Guest


it doesn't hang it gets outlook to hang

when the program closes it fine again?

Posted 21 Jun, 2005 07:35:04 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
The point is that, Outlook hangs because the shell command is waiting for Notepad.exe to be closed.
Posted 21 Jun, 2005 07:54:53 Top
Thomas Reinberger




Posts: 7
Joined: 2005-03-15
I'm sorry for posting. There was an error in my code - my mistake :-/

Kind regards
Thomas Reinberger
Posted 22 Jun, 2005 13:33:11 Top