Red box: Lookup Handle: null handle when opening document

Hello,

following problem:

I opened with 5.012. client a document in a database and always get such a redbox error: “Sorry, an uncorrectable error has occured: Lookup Handle: null handle”

I get this everytime, when I open documents with a form X, other documents with other forms are ok and I can open them.

I tested it with some collegues and it seems to effect with notesversions since 5.0.12 (also 6.01,6.03, 6.5->redbox error)

5.08 and 5.011 seems to be ok.

I debugged the application. The error occured by leaving Initialize-Event of the form.

I transferred the code from Initialize to Postopen-Event, but always the same effect.

Has anybody any idea?

Many thanks,

Isa Hedemann

Subject: RE: Red box: Lookup Handle: null handle when opening document

Since moving the code didn’t solve the problem, the code itself – not its location – must be causing the problem. Therefore, telling us what the code is may be more useful than telling where the code is.

Subject: RE: Red box: Lookup Handle: null handle when opening document

I meant: I moved the code to Postopen-Event and the error still occured in the initialize-Event!So it’s strange, if it would be the code, isn’t it?

I have tried it again with following code in Initialize-Event:

Messagebox “Init Start”

Messagebox “Init End”

in Postopen:

Messagebox “Postopen: Start”

'old Code vom Initialize-Event

gIsSaved = False

Set goError = New CErrorHandler

[other Postopen-Code…]

And the error occured at the “End Sub” of Initialize, so my code in Postopen will not be executed.

Subject: RE: Red box: Lookup Handle: null handle when opening document

It sounds like the form may be corrupt. Create a new form and copying everything from the old form. Then delete the old form and use the new one instead.

Subject: Solution: it was a Notes BUG with view.allentries

See http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/adf5f507393b667685256e4d004533f5?OpenDocument&Highlight=0,Hedemann

It has something to do with code in the Queryopen-Event.

I used “view.allentries” which is quity buggy under Notesversions >=5.0.12

Problem doesn’t occure if database is local.

Bug seems to be solved with serverversions >= Domino 5.0.10.

See problemreport no. 1116483 in knowledge base…