Strange save request when closing Outlook 2007

Status
Not open for further replies.
E

escamoteur

Hi,

when changing one specific custom prop on a Custom Form Region inspector and then closing the inspector without saving, I get twice

a dialog asking if I want to save changes when closing Outlook but there is no inspector open at this time.

Any idea??

Best

Tom
 
Save the item before closing the Inspector, that should solve the problem.

That can happen if there's any code in event handlers such as Inspector or

item.Close() or Write() or a number of other functions. Just because you

don't see the Inspector still it was open and is now closing and is firing

those prompts.

"escamoteur" <mail@burkharts.net> wrote in message

news:0ED22614-C9C9-4D42-A150-A2D9BAB34EEE@microsoft.com...
> Hi,

> when changing one specific custom prop on a Custom Form Region inspector
> and then closing the inspector without saving, I get twice a dialog asking
> if I want to save changes when closing Outlook but there is no inspector
> open at this time.

> Any idea??

> Best
> Tom
 
Hmmm, but I if the user decides not to save his changes this should be possible. Also it only happens when I change a specific

field.

Even If I wait quite a time before closing outlook after closing the inspector I don't get this requests, only on closing Outlook.

Normaly I should get the request when I close the inspector.

Is there any way to get all changed and not saved items listed?

Best

Tom
<kenslovak@mvps.org> schrieb im Newsbeitrag news:OUdffBVMKHA.4964@TK2MSFTNGP06.phx.gbl...
> Save the item before closing the Inspector, that should solve the problem.

> That can happen if there's any code in event handlers such as Inspector or item.Close() or Write() or a number of other functions.
> Just because you don't see the Inspector still it was open and is now closing and is firing those prompts.

> >

>

> "escamoteur" <mail@burkharts.net> wrote in message news:0ED22614-C9C9-4D42-A150-A2D9BAB34EEE@microsoft.com...
> > Hi,
>

>> when changing one specific custom prop on a Custom Form Region inspector and then closing the inspector without saving, I get
> > twice a dialog asking if I want to save changes when closing Outlook but there is no inspector open at this time.
>

>> Any idea??
>

>> Best
> > Tom

>
 
That is due to a flag that's probably set about your item and it wasn't

fully released by Outlook. I've seen that sort of thing sometimes,

especially if there's code in a custom form as well as in an addin and both

are working on the same item.

In Outlook 2007 there's an Unload() event that fires when Outlook finally

unloads an item from its internal cache, that event can fire long after the

item was closed. I think that's related also to what you're seeing.

You really only have a few choices. You definitely should go over your code

to see what if anything your code changes and which of the events such as

Close() and Write() you're handling. You can also make use of saving an item

and closing it with olDiscard as an argument.

What I usually do, and it works in the majority of cases but not 100% is to

hold a flag for when I save an item using code and I work with that in any

Write() event handler. If I called Write() I take certain steps and if the

user forced Write() I take different steps. I can check the flag and also

the Saved property of the item when it's being closed and decide on actions

to take such as saving or using olDiscard, and if necessary and the item was

saved but I want to discard it I can get EntryID and find it in Drafts and

delete it.

"escamoteur" <mail@burkharts.net> wrote in message

news:D1067DC4-2889-498E-8F20-7DA625DAF8D9@microsoft.com...
> Hmmm, but I if the user decides not to save his changes this should be
> possible. Also it only happens when I change a specific field.

> Even If I wait quite a time before closing outlook after closing the
> inspector I don't get this requests, only on closing Outlook. Normaly I
> should get the request when I close the inspector.

> Is there any way to get all changed and not saved items listed?

> Best
> Tom
 
I tried everything you mentioned. I even removed any of mine registered events but still the same happened. Finally I now found a no

longer used and unbound custom property field on my form region.

Many thanks

Tom
<kenslovak@mvps.org> schrieb im Newsbeitrag news:uZ0okMVMKHA.1236@TK2MSFTNGP05.phx.gbl...
> That is due to a flag that's probably set about your item and it wasn't fully released by Outlook. I've seen that sort of thing
> sometimes, especially if there's code in a custom form as well as in an addin and both are working on the same item.

> In Outlook 2007 there's an Unload() event that fires when Outlook finally unloads an item from its internal cache, that event can
> fire long after the item was closed. I think that's related also to what you're seeing.

> You really only have a few choices. You definitely should go over your code to see what if anything your code changes and which of
> the events such as Close() and Write() you're handling. You can also make use of saving an item and closing it with olDiscard as
> an argument.

> What I usually do, and it works in the majority of cases but not 100% is to hold a flag for when I save an item using code and I
> work with that in any Write() event handler. If I called Write() I take certain steps and if the user forced Write() I take
> different steps. I can check the flag and also the Saved property of the item when it's being closed and decide on actions to take
> such as saving or using olDiscard, and if necessary and the item was saved but I want to discard it I can get EntryID and find it
> in Drafts and delete it.

> >

>

> "escamoteur" <mail@burkharts.net> wrote in message news:D1067DC4-2889-498E-8F20-7DA625DAF8D9@microsoft.com...
> > Hmmm, but I if the user decides not to save his changes this should be possible. Also it only happens when I change a specific
> > field.
>

>> Even If I wait quite a time before closing outlook after closing the inspector I don't get this requests, only on closing
> > Outlook. Normaly I should get the request when I close the inspector.
>

>> Is there any way to get all changed and not saved items listed?
>

>> Best
> > Tom

>
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
E Strange save request when closing Outlook 2007 Outlook VBA and Custom Forms 4
D.Moore Strange VBA error Outlook VBA and Custom Forms 4
B Strange MAPI/Exchange/IMAP behaviour in OL 2016 under10.0.19044.2006 Using Outlook 0
P Strange Calendar Entries Using Outlook 4
ManaarZakaria I'm afraid of this issue, cause of strange error Exchange Server Administration 2
M Outlook.com autocomplete list invaded by strange items Using Outlook.com accounts in Outlook 7
A Outlook 2016 - adding outlook.com account creates a new/strange address Using Outlook.com accounts in Outlook 18
M Outlook adds strange characters inserted into the Subject Line Using Outlook 2
E Strange Send/Receive count Using Outlook 3
F Strange problem with calendars Using Outlook 3
dolke Strange Outlook behavior when receiving emails. More info in the content... Using Outlook 7
A Two strange calender problems in Outlook 2003 ... Using Outlook 2
S Outlook 2007 Add-in strange load behavior Outlook VBA and Custom Forms 10
B strange change in Outlook 2000 forms Outlook VBA and Custom Forms 1
S Strange Behaviour of Explorer Object. Outlook VBA and Custom Forms 1
G Save emails as msg file from Outlook Web AddIn (Office JS) Outlook VBA and Custom Forms 0
E Outlook 365 Save Selected Email Message as .msg File - oMail.Delete not working when SEARCH Outlook VBA and Custom Forms 0
E Save Selected Email Message as .msg File - digitally sign email doesn't works Outlook VBA and Custom Forms 1
M Outlook Macro to save as Email with a file name format : Date_Timestamp_Sender initial_Email subject Outlook VBA and Custom Forms 0
C Outlook 365 Copy/Save Emails in Folder Outside Outlook to Show Date Sender Recipient Subject in Header Using Outlook 0
W Create a Quick Step or VBA to SAVE AS PDF in G:|Data|Client File Outlook VBA and Custom Forms 1
C Outlook (desktop app for Microsoft365) restarts every time I save my VBA? Using Outlook 1
D VBA Macro to Print and Save email to network location Outlook VBA and Custom Forms 1
N VBA Macro To Save Emails Outlook VBA and Custom Forms 1
N Save emails within a certain date range to network drive Outlook VBA and Custom Forms 0
T Outlook 365 Move newly created tasks automatically on save. Outlook VBA and Custom Forms 1
G Save attachment run a script rule Outlook VBA and Custom Forms 0
N Save Selected Email Message as .msg File Outlook VBA and Custom Forms 12
G Save and Rename Outlook Email Attachments Outlook VBA and Custom Forms 0
G VBA to save selected Outlook msg with new name in selected network Windows folder Outlook VBA and Custom Forms 1
D Outlook 2016 64bit, Cannot Save in 'HTML', format Using Outlook 1
N Save selected messages VBA does not save replies and/or messages that contain : in subject Outlook VBA and Custom Forms 1
L Macro to add Date & Time etc to "drag to save" e-mails Outlook VBA and Custom Forms 17
S save attachment with date & time mentioned inside the file Outlook VBA and Custom Forms 0
S Add VBA save code Using Outlook 0
A Edit attachment Save and Reply Outlook VBA and Custom Forms 0
S Outlook (2016 32bit; Gmail IMAP) - Save sent message to Outllook Folder Outlook VBA and Custom Forms 0
P Outlook pst file is too huge with POP3. How to save more space? Using Outlook 4
D Prevent popup of "Do you want to save changes?" when closing after opening an appointment to view Outlook VBA and Custom Forms 2
A Unable to save recurring Meeting to Documents folder due to error Using Outlook 2
M Outlook 2013 Script Assistance - Save Opened Link with Subject Added Outlook VBA and Custom Forms 1
R Use an ItemAdd to Save Attachments on Arrival Outlook VBA and Custom Forms 0
W Outlook Calendar does not save view any longer! Using Outlook 3
S automate save the .xlxs file to share Network Using Outlook 1
S save email from excel Outlook VBA and Custom Forms 1
Y Open and Save Hyperlink Files in multiple emails Outlook VBA and Custom Forms 9
9 Outlook 2016 How to save an Outlook attachment to a specific folder then delete the email it came from? Using Outlook 1
O Save attachments using hotkey without changing attributes Outlook VBA and Custom Forms 1
geofferyh Cannot get Macro to SAVE more than one message attachment??? Outlook VBA and Custom Forms 5
N Open & Save VBAProject.Otm using VBA Code Outlook VBA and Custom Forms 1

Similar threads

Back
Top