Outlook gives me items delete event while i'm getting properties of item

I

Ian Boyd

i update my listview:

procedure RefreshStuff;
begin
szText := ContactItem.DisplayName;
szEmail := ContactItem.Email1Address;

...interrupted with IDispatch.Invoke from AllContactsItems...
"your item has been deleted"
...return...

szAddress1 := ContactItem.Address1; ***CRASH***
end;

How can i tell Outlook not to give me a notification through my IDispatch
events interface unless i am processing messages?

You can't erase an object while i'm in the middle of accessing a property of
said object. It's uncouth.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top