Object variable not set when running an application in Lotes 8

Hi all,

Originally I have an application developed for Notes 5 & 6, which runs perfectly without error.

When I use Notes 8 to run that application, the “object variable not set” error message is prompted. The application can still run normally but the error message is just a bit annoying.

Did anyone here encounter this situation before?

I don’t have the code with me so i cannot post the code here.

I use the debugger in Notes 8 to run that application. The application stop at the postopen of the database script. The line is something like " Dim session As New NotesSession". But for a few times, the whole postopen can run successfully, but the error message appear when i switch back to the lotus note from the debugger.

I have google a lot about the object variable not set, but seems not really helpful. I don’t know what i should do to solve this problem.

Is there any people here have the same problem before? If yes, how could you solve that?

Thanks and regards,

Sai

Subject: RE: Object variable not set

The statement Dim session As New NotesSession cannot possibly give that error.

We need more information about what you’re doing.

If you’re not sure what information to supply, the C R I S P Y document might help you. There’s also a link in there to an article about debugging that explains this specific error and what causes it.

Not having the source code “with you” isn’t really a good excuse. Wait to post until you have the necessary information available.

  • Andre Guirard, IBM/Lotus Development

Useful blog: Best Practice Makes Perfect

Subject: Post the code

Post the code please