|
-
Jan 30th, 2002, 04:59 PM
#1
Thread Starter
New Member
Terminate Event Not Firing
Hi,
I've written a small app which consists of a form in a standard exe and a class created in an ActiveX Dll. Unfortunately, I have to use circular references between objects, which has the nasty habit of keeping out of reference objects alive until the application ends.
I can live with this, except I need to get the class_terminate event when the application exits.... the plot thickens.
When running inside the IDE, the class terminate event is fired for each object when the form is closed and the application exits normally. This is expected. The problem happens when the application is compiled. The class_terminate event does not fire for the orphaned objects when compiled.
The “end” keyword is not used anywhere in the program and as far as I can see the program is exiting normally when the startup form is closed.
Oh, yeah, if the class is created as part of the standard exe, terminate events fire as normal, even when it’s compiled. I only seem to have the problem when the class if contained in an external dll.
I’m using VB6 Sp5 on Win 2000 Sp2, but first noticed it on VB6 SP2 on NT4 sp6.
I appreciate any help anyone can give me on this…
Cheers,
Trev.
~~~~~~~~~~~~~~~~~~~
~Trev "Code Monkey" Hunter
~"It works on My Machine!"
~~~~~~~~~~~~~~~~~~~
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|