Link to home
Start Free TrialLog in
Avatar of IanDB
IanDB

asked on

Class Event Lifetime

I have a third party COM product which triggers events and works fine in VBA.
Porting to VB6 I have difficulty because the old problem of asynchronous execution means the event class terminates before the Class events I am trying to trap have triggered.
ie xyzCompleteEvent never traps because the sub calling the process completes and terminates the class before xyz even gets underway.
If I add a timing loop, all is well but I can't live with that.
Register_event_Handler is being called from the same sub that calls the process I am trying to trap.
I remember reading somewhere of the ability to make the class global or some such.
Any help appreciated.
   
ASKER CERTIFIED SOLUTION
Avatar of webJose
webJose

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CleanupPing
CleanupPing

IanDB:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Experts: Post your closing recommendations!  Who deserves points here?
Again, I think my answer is correct and I should get the points awarded.