-
Hello!
I am running VB5 sp3.
I've built an OCX and use it in my project.
It's loaded and the index is set to 0.
Throughout the program I load and unload the OCX, but the OCX doesn't release the memory it allocated. This is apparent by the windows message "Out of Memory".
Can anyone (guru types) help me with this?
Thanks,
Ken
-
What is the nature of the Control (what does it do?) does it use API calls?
-
Thanks for responding Aaron!
The control is comprised of 17 timers, 5 picture boxes and 1 shape.
The control is used as a graphic representation of a box moving around a conveyor system.
I'm not using any API calls, but it has 4 custom properties and 1 custom event.
Need more info?
Thanks,
Ken
-
If code is still executing in the Timers when your Control is unloaded this could prevent it from really unloading (like a Form), so you could try disabling the Timer controls before your Custom Control is unloaded.