Unhandled errors; public vars/classes lose scope??



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

.



Relevant Pages

  • Re: Multithreaded COM DLL
    ... Thanx Craig. ... the procedures are already included in an OlePublic custom class ... How would I incorporate this class into the session? ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Multithreaded COM DLL
    ... You'll need to copy and paste the code from the custom class into the ... > How would I incorporate this class into the session? ... > "Craig Berntson" wrote in message ... CrysDev: A Developer's Guide to Integrating Crystal Reports ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Unhandled errors; public vars/classes lose scope??
    ... My custom class module's class_terminate event doesn't even fire, ... Public Session As clsSession ... Public Function SessionInit() ... Rick Brandt, Microsoft Access MVP ...
    (comp.databases.ms-access)
  • Re: Retrieving Session Data from a Base Page Class
    ... >I normally work on WinForms projects, but have been recently thrust into ... > We've apparently got an object (custom class) that's stored in session for ... > stylesheet reference, I was thinking about having all pages inherit from ...
    (microsoft.public.dotnet.framework.aspnet)

Loading