A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook 2007 freezing when out-proc COM (called by add-in) exits



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 29th 08, 07:23 AM posted to microsoft.public.outlook.program_addins
Mark McGinty
external usenet poster
 
Posts: 25
Default Outlook 2007 freezing when out-proc COM (called by add-in) exits

Greets,

I have an addin, written in VB6, that calls an out-proc COM server (to
process a queue, though this is not important.) Before it exits the COM
server fires an event, following which the addin sets the object variable
(for the COM server) to Nothing. After the addin returns from that event,
the COM server releases its object references and then calls the ExitProcess
API.

I added the call to ExitProcess to support Vista, because without it Vista
"detected" a hung process, which made for a very annoying UI experience
every time the COM server was called. (The call to ExitProcess also makes
debugging the COM server interesting, because it causes the VB6 IDE to exit
its process as well, though this, too, is not important.)

All of the above works fine up to and including Outlook 2003, but in Outlook
2007, if an inspector is open when the COM server exits, Outlook freezes.
(I can tell it is at exactly this point from debugging output generated by
the COM server and the addin.) Task man shows CPU usage for Outlook's
process at 99% when this occurs.

Has anyone read anything, about changes in Outlook 2007, that might be
relevant?


TIA,
Mark


Ads
  #2  
Old November 29th 08, 10:22 AM posted to microsoft.public.outlook.program_addins
Mark McGinty
external usenet poster
 
Posts: 25
Default Outlook 2007 freezing when out-proc COM (called by add-in) exits

Update: The freeze-up may not necessarily be associated with the COM
server's exit -- it happened to me that way twice, but then failed to happen
across a dozen creation/destruction cycles for that object. It also
happened while no instances of the COM server object existed.

The only thing common to all occurrences of this freeze-up is that, each
time when it happened, I was typing in an email inspector, while some level
of background processing was ongoing. Once Outlook hangs, its memory
allocation and handle counts remain unchanged. Also once it hangs, it is no
longer possible for any other process to create an Outlook automation
object, until the hung Outlook process has been killed.

Anything relevant, still appreciated.


-Mark


"Mark McGinty" wrote in message
...
Greets,

I have an addin, written in VB6, that calls an out-proc COM server (to
process a queue, though this is not important.) Before it exits the COM
server fires an event, following which the addin sets the object variable
(for the COM server) to Nothing. After the addin returns from that event,
the COM server releases its object references and then calls the
ExitProcess API.

I added the call to ExitProcess to support Vista, because without it Vista
"detected" a hung process, which made for a very annoying UI experience
every time the COM server was called. (The call to ExitProcess also makes
debugging the COM server interesting, because it causes the VB6 IDE to
exit its process as well, though this, too, is not important.)

All of the above works fine up to and including Outlook 2003, but in
Outlook 2007, if an inspector is open when the COM server exits, Outlook
freezes. (I can tell it is at exactly this point from debugging output
generated by the COM server and the addin.) Task man shows CPU usage for
Outlook's process at 99% when this occurs.

Has anyone read anything, about changes in Outlook 2007, that might be
relevant?


TIA,
Mark



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OE won't start - MSIMN.EXE is running as a proc geistman Outlook Express 1 September 18th 08 05:24 PM
Outlook 2007 is freezing up on indexing contacts CWTrooper Outlook - Using Contacts 13 July 10th 08 09:46 PM
Outlook 2007 Freezing Chris Outlook - General Queries 2 November 7th 07 08:50 AM
Outlook 2007 freezing uppon clicking 'To...' Guzun, Alex Outlook - General Queries 2 September 5th 07 03:49 PM
Please wait while Microsoft Outlook exits... then it doesn't! JPandzik Outlook - Installation 1 February 21st 06 09:34 PM


All times are GMT +1. The time now is 08:53 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.