Outlook become non responsive if i write outlook item in bulk

A

Ashish

I already had, in Outlook 2003 SP03 machine, but now i came to know that a
latest hotfix released in april resolved this issue in clean machine.
The issue was still reproducible with out addin, and that was GC issue,
calling GC.waitforfinalizer resolved it to a large extent.

Best Regards
ashish rawat

Dmitry Streblechenko said:
So can *you* reproduce this issue on a clean machine?

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
Ashish said:
Hi Dimitry,

There is already a ticket created, but microsoft feels that it is only
because of add-in as they say that it is not reproducible in a clean
machine
in there test environment.

Also today i am able to reproduce a scenario in which the modiifed time
apprear update in outlook item while the same is not being reflected when
we
use the simple read macro
Sub TestContact()
Dim ocnt As ContactItem
Set ocnt =
Session.GetFolderFromID("00000000FA5D5A5CC0767341AE4B04252BC4FC9E01006D56A02FB0E2AB4780517B5306F7DE5000016DDA00340000").Items("Kapil
Goel")
Debug.Print " Last Modified time : " +
CStr(ocnt.LastModificationTime)
Debug.Print " Last Modified Body : " + CStr(ocnt.Body)
Debug.Print "========================================================="
End Sub


Also , if possible can i give you call sometime, though our time lines are
different but i can call you at 9.30 EST.

Best Regards
Ashish Rawat

Dmitry Streblechenko said:
It can't. But if you have a reproducible scenario, I'd encourage you to
open
a support case with MS.
They will waive the fee if the cause will turn out to be a bug in
Outlook.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
Hi Dimitry,

sorry for such a delayed response but there was lots going on in this
end.
To answer your question, I do not see the change in date even if i
update
the Outlook item.
I reported this issue to Microsoft, and they have come up blaming an
add-in.How can possibliy an add-in impact the new Outlook item created
and
block its last modification time from update ?

Best Regards
Ashish Rawat


:

I just thought that you might be reading last modification time from a
recurrence after modifying the master appointment.
If you switch the calendar folder to the "By Category" view, add laast
modified tiem to the view, and modify an appointment, do you see the
change
immediately in the folder view?

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
Hi Dimitry,

I didn't checked with the recurring appointments, as it was coming
for
normal appointment itself. why did u asked, is there any difference
between
the two ?

One more pointer, if i use outlook in non cache mode i get the
correct
last
modification time.

Best Regards
Ashish Rawat


:

Is there any difference between recurring vs nonrecurring
appointments?

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
Hi Dimitry ,
Steps to reproduce the issue.
1. Just manually create any appointment, contact or task.
2. Update that outlook entitty..
3. Run the following macro in outlook, you will see the last
modification
time.
To read last modification time, you can use following vb macro
Sub TestAppointment()

Dim objMapiFolder As Folder
Dim i As Integer
Dim cnt As Integer
Dim oItems As Items
Dim oDate As Date
Dim oappt As AppointmentItem
Set objMapiFolder = Session.GetDefaultFolder(olFolderCalendar)

objMapiFolder.Items.Sort ("[Start]")
objMapiFolder.Items.IncludeRecurrences = True
Set oItems = objMapiFolder.Items


For i = 1 To oItems.Count
Set oappt = oItems.Item(i)
If (oappt.Subject = "testlmdate") Then
Debug.Print " Last Modified time : " +
CStr(oappt.LastModificationTime)
Debug.Print
"========================================================="
End If
Next

End Sub

4. Again change the outlook item and repeat the same process.

You will see that last modification time is same some times.
This issue is not consistently reporducible but its common with
contact.
Thanks for your help.

Best Regards
Ashish Rawat






:

So you see the chnage that your code makes but the last modified
time
stays
the same?
Doyou have a sampel script that exhibits this porblem?

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
Hi Dimitri,

I didn't notices, am i taking to Dimitry , the father of
redemption
dll.I
am
honoured :)
By the way, i have raised this issue as bug to microsoft also.

Best Regards
Ashish Rawat


:


Hi Dimitry,

We are talking about update scenario here.

Best Regards
Ashish rawat

:

" lastmodification time property will not get updated." -
what
exactly
do
you mean by that?
If you are creating a brand new item, surely you would get
some
value
in the
lastmodification time propety. What is it?


--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
message
Hi
I write outlook item using the simple MAPI api .
Following is the code example.
Dim MyFolder As
Microsoft.Office.Interop.Outlook.MAPIFolder
Dim MyFileName As String
Dim OlType As
Microsoft.Office.Interop.Outlook.OlItemType
Dim TypeSuffix As String
Dim olitem as object
OlType = GetCorrespondingOlItemType(CalType)
TypeSuffix = GetCorrespondingSuffix(CalType)
MyFolder = IIf(OlType =
Microsoft.Office.Interop.Outlook.OlItemType.olTaskItem,
mobjTaskMAPIFld,
IIf(OlType =
Microsoft.Office.Interop.Outlook.OlItemType.olAppointmentItem,
mobjApptMAPIFld, mobjContactMAPIFld))

On Error GoTo OpenAsDefault
Err.Clear()
olitem= MyFolder.Items.Add(OlType)
olitem.save
System.Runtime.InteropServices.Marshal.FinalReleaseComObject(olitem)

if a write many items in bulk, the oulook behaves
inconsistently,
Even if i create a new contact manually and update it,
lastmodification
time
property will not get updated.

Though this issue is not consistenly reporducible, can
some
help
me
finding
any reason why this is happening ?

Thanks in advance.

Best Regards
Ashish Rawat
 
Top