> However, if you create a Perl object and use that to connect the XS stuff, > you can use the class' destructor, the DESTROY sub. It will get called upon > garbage collection when the object goes out of scope or when the program > terminates.
It's what i do in my first release. I haven't trouble with WebBrowser. But, with other ActiveX, i have an Exception. After some research, i found it's necessary to release all before the event loop stop. I think DESTROY sub is call after all window have receive WM_DESTROY message. Laurent