Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C++ ActiveX
I am trying to write an ActiveX control based on Embedded Chromium.[^]
I have had some success but it seems like the activeX crashes once the browser / control is non longer visible and the control is destroyed. I am hoping that the issue will be fixed in subsequent version (or that I find what I have done wrong to mistreat the poor library).
BUT what I need (as a quick fix) is a way of terminating all threads on that OCX once I have finished using it and unload it from memory... Any idea about how to unload (and reload) an OCX at will in C++/ MFC?
Posted 3-Dec-12 0:58am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Make sure you don't have any pointers.
One line above ::CoUninitialize() is my favorite place to put it.
Hope this helps,
BadJerry at 4-Dec-12 6:17am
Thanks Pablo - it did the trick!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Advertise | Privacy | Mobile
Web02 | 2.8.140709.1 | Last Updated 3 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid