< Back

Document Subject: Read memory error
Hint Short Cut: Add this to your code & documentation to help you find this page.
http://#ReadMemoryError or http://A555F9/nn.nsf/ByAlias/ReadMemoryError

A colleague repeatedly crashed Lotus Notes and received the message "the instruction at 0xWHATEVER referenced memory at 0x00000000 the memory could not be read". A workaround and a solution was eventually found.




We originally saw it on v5.0.7, when access the document properties in the lotus script debugger.

We tried deleting the cache.dsk in case it was a temporary caching problem.

We tried it on Notes v4.6 and it still failed.

We tried it on V5.0.11 and it worked ok.

Narrowing it down to a field that had no name i.e. "". It was of null type and null value.

 

After finding it worked on 5.0.11, we lost interest, but I reckon removing the field with script like:

 ' From http://www.NotesNinjas.com/#ReadMemoryError
Dim s As New notessession
Dim db As notesdatabase
Set db = s.currentdatabase
Dim doc As notesdocument

Dim col As notesdocumentcollection

Set col = db.unprocesseddocuments

Set doc = col.getfirstdocument()

Forall i In doc.items
 If i.name = "" Then
  i.remove
 End If
End Forall

Call doc.save(False,False)

 

would have sorted it.

Stick this in a view action and select the document and press the button.

Make a backup first!