![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
I have a problem. In outlook's addins crash, if I close it before the
advanceSearch end. I do check in application.Quit. But outlook still close. Then it open. And when search finish, it close again. I see it on my log. How do I right? |
Ads |
#2
|
|||
|
|||
![]()
By the time application.Quit() fires the Outlook objects are already out of
scope. Probably you can check for the Explorer.Close() and Inspector.Close() events on any open Explorer or Inspector and if it's the last Explorer closing or last Inspector and there are no Explorers then use that as your signal that Outlook is closing down. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "Andrey_R" wrote in message ... I have a problem. In outlook's addins crash, if I close it before the advanceSearch end. I do check in application.Quit. But outlook still close. Then it open. And when search finish, it close again. I see it on my log. How do I right? |
#3
|
|||
|
|||
![]() Thanks Ken. I do pause in Explorer.Close() and Inspector.Close(). But Outlook still closed at once and when search finished, log write open and close. Are objects in this metods already out of scope? |
#4
|
|||
|
|||
![]()
Your Outlook objects aren't out of scope yet when Explorer.Close() and
Inspector.Close() fire. If you determine in those event handlers that Outlook is closing and an advanced search is in progress just call its Stop() method, then call a procedure to release all of your Outlook objects. That should let Outlook close properly. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "Andrey_R" wrote in message ... Thanks Ken. I do pause in Explorer.Close() and Inspector.Close(). But Outlook still closed at once and when search finished, log write open and close. Are objects in this metods already out of scope? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Looking for code to wait/pause for input... | [email protected] | Outlook and VBA | 9 | February 28th 08 10:35 PM |
Outlook Script: insert a pause in do while | bbnimda | Outlook - Using Forms | 0 | December 14th 07 10:31 AM |
Outlook seems to pause/freeze once in a while while reading e-mails. | Phillip Pi | Outlook - General Queries | 2 | May 16th 06 02:20 AM |
How do I programme a pause in a number dialed from contacts? | timbrownsc | Outlook - Using Contacts | 0 | April 18th 06 04:56 PM |
pause in script | Joel Allen | Outlook and VBA | 6 | February 27th 06 07:28 AM |