Help to understand Stack report

Hi All, I am trying to track down a NilObjectException by having Session.UnhandledException write the error.stack to a text file.

Main question is: Is the top of the stack string the earliest or latest event?
ie:
Session.Session.SLconnect%o%o<Session.Session>
Session.Session.CreateSessionLog%%o<Session.Session>s
Session.Session.Event_Close%%o<Session.Session>
WebSession._Cleanup%%o
_SessionShutdownThread.RemoveAction%%o<_SessionShutdownThread>o
Delegate.IM_Invoke%%o
AddHandler.Stub.0%%

What was the last thing that happened here prior to the Exception? The Session.SLconnect call, or the AddHandler.stub call ??

SLConnect.

It looks like you’re trying to make a database connection while the Session is being destroyed from within the Session.

Thanks Greg, that’s what I needed to confirm :slight_smile: