Works in V7 but only with debug in V8

I have a legacy application that has been working fine with Notes 7 Client and Domino 8 servers, After we ugraded our notes clients to Release 8.5.2FP1 SHF231. I now get an error that does not occur when debugging is enabled !.

The error is ‘object variable not set’ and occurs during the postsave event of the form. the following script extract shows the indicated error line; it is the function call (resides in script library) immediately following the If statement.

If DocCurrent.txtStatus(0)=“Submitted” Then

Call CreateGCATSecurityandDeletionRecord(DocCurrent )

Msgbox "Your reQuest has been submitted successfully.",64,"Confirmation"

Call Source.fieldsettext("Saveoptions", "0")

End If

Now given that

  1. ‘DocCurrent’ has already been set and tested by the ‘IF’ to reach the call.

  2. The code works in a 7 Client.

  3. The code works in an 8 Client when ‘Debug LotusScript’ is enabled

  4. The Application is running on a Domino 7.0.3 server in production and 8 in test.

Why is the 8 Client failing at this point when run normally ?

Any suggestions on how to go about resolving this conundrum would be greatly appreciated.

Subject: Timing problem

I experienced the same a few times. It were typically timing problems, which explains that debugging worked fine. Try to find out where Notes is “too fast” for the server by inserting message boxes, the put some time wasting routine in the right place.