Issue with NotesViewNavigator created from view category that has more than 250 entries

LotusScript code crashes Domino server and client version 8.5 (tested on following platforms: Domino 8.5 @ SuSe Linux, Domino 8.5 64 bit version @ Windows Server 2003 x64, Notes 8.5 @ Window XP, Notes 8.5 @ Mac OS X 10.5.6) when view category has more then 250 entries.

This code works fine on any other Notes/Domino version lower then 8.5 (tested on: Domino 8.0.2 @ Windows Server 2003, Domino 7.0.3 @ Suse Linux and Windows Server 2003, Notes 7.0.3 @ Windows XP)

Actual agent is called from WebQueryOpen event of form, and shows documents for specific date. But I think it’s insignificant, because code in example crashes client too.

Sub Initialize

Dim session As New NotesSession

Dim db As NotesDatabase



Set db = session.CurrentDatabase





Dim view As NotesView

Dim nav As NotesViewNavigator

Dim entry As NotesViewEntry



Dim ssCode As String

Dim ssDate As String



ssDate = "2007.04.11"



Set view = db.GetView("ToDayDocHTML")





Set nav = view.CreateViewNavFromCategory(ssDate)



If Not nav Is Nothing Then

	Set entry = nav.GetFirstDocument

	Do While Not entry Is Nothing			

		ssCode = ssCode + entry.COLUMNVALUES(3)

		Set entry = nav.GetNextDocument(entry)

	Loop

End If

End Sub

Any suggestions?

Subject: Ugh… NotesViewNavigator was definitely updated with 8.5, there’s been a few problems such as this. Have you opened a PMR?

Subject: yep, it’s currently in progress

Subject: Great - please keep us informed.

Subject: its confirmed bug

After upgrading a server to the final release of Domino 8.5 crashes. Aftersome troubleshooting, narrowed down the problem to a specific agent that

had been working fine in all previous versions of the server (various

versions of 7.0.x and 8.0.x);

After further investigation, it was found that the problem was reproducible

on several machines in clean databases and occurred during traversal of a

view using a NotesViewNavigator.

A reproducible crash occurred when running an agent containing only this

code:

==================================================================

Dim session As New NotesSession, db As NotesDatabase

Set db = session.CurrentDatabase

Dim deathView As NotesView

Set deathView = db.GetView(“DeathView”)

Dim nav As NotesViewNavigator, entry As NotesViewEntry

Set nav = deathView.CreateViewNav

Set entry = nav.GetFirst

Do While Not (entry Is Nothing)

  Set entry = nav.GetNext(entry)

Loop

===================================================================

Subject: Did you receive a PMR# for this you can share with us ?

I having another, somewhat related issue with 8.5.* NotesViewNavigator too, so I wonder if this future Fix will correct my issue too.Thanks

Subject: tested in 8.5.1 CD8 and it works

I copied and pasted your code into a new agent and ran it from Domino Designer 8.5.1 CD8 against a Domino 8.5.1 CD8 server and it worked.