Click here to Skip to main content
12,360,037 members (59,285 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C++ ActiveX
Hello,

I am trying to write an ActiveX control based on Embedded Chromium. http://code.google.com/p/chromiumembedded/[^]

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?

Regards,
Jerry
Posted 3-Dec-12 0:58am
BadJerry8.1K

1 solution

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

Solution 1

::CoFreeUnusedLibraries();
Make sure you don't have any pointers.
One line above ::CoUninitialize() is my favorite place to put it.

Hope this helps,

Pablo.
  Permalink  
Comments
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
Web01 | 2.8.160621.1 | Last Updated 3 Dec 2012
Copyright © CodeProject, 1999-2016
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