Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
EVENTHANDLER() with WebBrowser causing Errors
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01153978
Message ID:
01153981
Views:
13
Hi Phil,

>I was under the impression that EVENTHANDLER() automatically unbinds when the relevent objects go out of scope.

That's true for BINDEVENT() but not for EVENTHANDLER(). With EVENTHANDLER you are dealing with COM references that maintain their own reference count. Establishing the connection alone keeps the object from releasing.
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform