HCL
Skip to main content  
 
   


SPRTechnote


Notes client crashes when closing a database view window or deleting a NotesView object while a document window has focus

Technote Number: 1227436


Problem:
This issue was reported to Quality Engineering and has been fixed in Lotus
Notes release 6.5.6 and 7.0.2.

Excerpt from the Lotus Notes and Domino Release 7.0.2 MR fix list (available at
http://www.ibm.com/developerworks/lotus):

LotusScript
SPR# CDHR6FZG3Q - Fixed a crash when a view action obtains a
NotesDocumentCollection and composes a new document which contains scripted
objects, and the view is closed while the document is still open.

Refer to the Upgrade Central site for details on upgrading Notes/Domino.

Workarounds
As the crash is dependent on a number of factors, it can be avoided by
re-working the code for a single factor.

For agents which need to access only the initial document rather than a
collection:
Rather than using a NotesDocumentCollection based on the UnprocessedDocuments
property of the NotesDatabase class to get a handle to the document, instead
use the DocumentContext property of the NotesSession class.

For example replace the following code:
Set col=db.UnprocessedDocuments
Set doc=col.GetFirstDocument

with:
Set doc=s.DocumentContext

Get a new handle or delete the existing handle to the NotesView object handle
prior to opening/creating the new document
The other key factor to recreating this issue is the NotesView object handle.
If you no longer need the handle to the object delete it prior to opening or
creating the new document.

For example:
Delete view
Call w.ComposeDocument("", "", "Formname")

If the handle to the NotesView object is still needed, then the other
alternative is to get a new handle to it using the GetView method as the issue
occurs only when the handle to the back-end NotesView object is derived from
the NotesUIView object's View property.

For example:
Set uiview=ws.CurrentView
Set view=uiview.View

Set view2=db.GetView(view.Name)
Delete view
Call w.ComposeDocument("", "", "Formname")
More >





  Document options
Print this document
Print view

  Search
Search Advanced Search


  Fix list views

 RSS feeds   RSS
Subscribe to the fix list

  Resources
Using this database
View notices

  HCL Support
HCL Support


    About HCL Privacy Contact