Click here to Skip to main content
12,885,268 members (43,319 online)
Rate this:
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 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)

    Print Answers RSS
Top Experts
Last 24hrsThis month

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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100