Urgent Help needed Instancing problem with User control

0 views
Skip to first unread message

Farhan

unread,
Jun 6, 2007, 8:55:17 AM6/6/07
to Visual Basic Help Center, comp.lang.basic.visual.misc, microsoft.public.vb.com, microsoft.public.vb.general.discussion, microsoft.public.vb.winapi, microsoft.public.vb.controls.creation
I have a form on which I have used a user control, if I open the form,
close and repeat this process then after a certain number of times (on
my machine it was 50) I get the following error

"Failed to load control 'uctPartyPCControl' from uctPartyPC.ocx. Your
version of uctPartyPC.ocx may be outdated. Make sure you are using
the version of the control that was provided with your application."

Have tried quite a few things but all in vain, can anyone suggest what
could be the cause of this and a posible solution.

Any help will be much appreciated.

miskomisko

unread,
Jun 7, 2007, 6:47:56 AM6/7/07
to Visual Basic Help Center
There can be sth in the code during create or destroy of the
component, cause there is no limitation of use for activex component,
if you didnt implement it. If you use some unknown activex component
in you component one of them can have this limitation implemented and
it can be the problem.

If it doesnt contain other components have a look if it free memory
after closing the form. Maybe there is some object atribute which is
inside uctPartyPC changed and it reaches some value outside the range.
Have a look what is beeing done during initialization and finalization
of uctPartyPC if you have source code. If it is not problem to send me
that ocx, or if you have source, maybe to send me some adjusted
version of this to me, so i try it :) or what is done during
initialization and finalization...

Reply all
Reply to author
Forward
0 new messages