Click here to Skip to main content
15,886,026 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

1 solution

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

Hope this helps,

Pablo.
 
Share this answer
 
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900