G
googleDjango
I had the trouble that when using a class module with withEvents,
Access97 crahes when arriving to the statement : set classForm
=nothing
This is due to the fact that the events in the classForm are sent
AFTER the same events in the normal form
If you write in the classForm the terminate event with set
withEventsForm=nothing there is no more reference to the classForm
The events are sent in the order
unload event
then close event
so with the classForm and the normal form it makes
normal form unload event
class form unload event
normal form close event
class form close event
To make things work you have to do
create an unload event in the classForm that will do the neating of
the reference to the withEvents form (set withEventsForm=nothing)
In the normal form in the close event do the cleaning of the classForm
(set classForm = nothing)
So you achieve to prevent memory leaking
This works with Access97 but maybe it's also an issue in 2000+
versions
Access97 crahes when arriving to the statement : set classForm
=nothing
This is due to the fact that the events in the classForm are sent
AFTER the same events in the normal form
If you write in the classForm the terminate event with set
withEventsForm=nothing there is no more reference to the classForm
The events are sent in the order
unload event
then close event
so with the classForm and the normal form it makes
normal form unload event
class form unload event
normal form close event
class form close event
To make things work you have to do
create an unload event in the classForm that will do the neating of
the reference to the withEvents form (set withEventsForm=nothing)
In the normal form in the close event do the cleaning of the classForm
(set classForm = nothing)
So you achieve to prevent memory leaking
This works with Access97 but maybe it's also an issue in 2000+
versions