Re: Unhandled errors; public vars/classes lose scope??
- From: "Rick Brandt" <rickbrandt2@xxxxxxxxxxx>
- Date: Sat, 14 Apr 2007 17:09:14 GMT
robert.waters wrote:
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
It's always been that way. MDE's don't do this however.
--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
.
- Follow-Ups:
- Re: Unhandled errors; public vars/classes lose scope??
- From: robert.waters
- Re: Unhandled errors; public vars/classes lose scope??
- References:
- Unhandled errors; public vars/classes lose scope??
- From: robert.waters
- Unhandled errors; public vars/classes lose scope??
- Prev by Date: Unhandled errors; public vars/classes lose scope??
- Next by Date: Re: Unhandled errors; public vars/classes lose scope??
- Previous by thread: Unhandled errors; public vars/classes lose scope??
- Next by thread: Re: Unhandled errors; public vars/classes lose scope??
- Index(es):
Relevant Pages
|
Loading