Hi,
I have a TenderEnd hook registered for my RMS. I am getting a reference of SessionClass object through the Process function. But later in my code, the SessionClass object is automatically getting set to Nothing. So one of my call is failing and the Err.Description is "Invalid Procedure call or argument".
Is there any chance that a SessionClass reference can get set to "Nothing". Is there any Timeout for SessionClass.
Public Function Process(objSession As Object) On Error GoTo ERR_HANDLER: // All my code goes here
// The following call fails because objSession is getting set to "Nothing". Call DisplayTransactionDetails(objSession) Process = True ERR_HANDLER: Call MsgBox(Err.Description) End Function
Private Function DisplayTransactionDetails(objSession as QSRules.SessionClass) // Displaying the Amount and others DisplayTransactionDetails = True End Function