Unload an OCX

P

PowerM

Hello
I have Form with Ocx on it, this form is loaded from another one, lets call him Start. This ocx is not checked under references menu.
So Start form starts Form with Ocx and ocx is loaded into memory, after closing that form, ocx persists in memory until I close Access.
What I need is unload that control while start control is still working. Unload method not working, I have tried windows API function FreeLibrary and FreeLibraryAndExitThread they work fine, but after execution whole Access clashes.
My questions are:
Why this ocx still persist in memory?
How to unload that control safely?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top