Unhandled errors; public vars/classes lose scope??
- From: "robert.waters" <robert.waters@xxxxxxxxx>
- Date: 14 Apr 2007 09:59:11 -0700
Why do my public variables (including class instances) disappear when
my app experiences an unhandled error?
My custom class module's class_terminate event doesn't even fire, the
instance just goes out of scope/gets garbage collected/disappears into
thin air.
Does anyone know why Access behaves in this manner, or more
importantly how to change that behavior?
FYI I am using an AutoExec macro to call a public function (in a
module) that creates an instance of a custom class (to keep track of
session data) thusly:
Public Session As clsSession
Public Function SessionInit()
Set Session = New HDSession
End Sub
.
- Follow-Ups:
- Re: Unhandled errors; public vars/classes lose scope??
- From: Albert D. Kallal
- Re: Unhandled errors; public vars/classes lose scope??
- From: Rick Brandt
- Re: Unhandled errors; public vars/classes lose scope??
- Prev by Date: Re: Problem with Compact/Repair part 2
- Next by Date: Re: Unhandled errors; public vars/classes lose scope??
- Previous by thread: Sorting Help
- Next by thread: Re: Unhandled errors; public vars/classes lose scope??
- Index(es):
Relevant Pages
|
Loading