|
-
Feb 1st, 2019, 11:51 PM
#1
Thread Starter
Addicted Member
Random Vb6 error , usually for 'load control(array)' statement
"Failed to load control 'A' from B.OCX. Your version of B.OCX may be outdated. Make sure you are using the version of the control that was provided with your application."
This error comes randomly in vb6 application exe, will not repeat when application is closed and opened (i.e can't recreate error) usually comes for 'load control(array)' statement
What is the cause for this error? (registration of ocx file is done properly, also it works most of the time)
tried the solution given here , but same error repeats.
-
Feb 2nd, 2019, 05:03 AM
#2
Re: Random Vb6 error , usually for 'load control(array)' statement
Can you look in task manager how many GDI handles your process is using when this error occurs. There is a hard limit of 10k
-
Feb 2nd, 2019, 06:03 AM
#3
Thread Starter
Addicted Member
Re: Random Vb6 error , usually for 'load control(array)' statement
 Originally Posted by wqweto
Can you look in task manager how many GDI handles your process is using when this error occurs. There is a hard limit of 10k
GDI handles are less than 2000
-
Feb 2nd, 2019, 06:14 AM
#4
Re: Random Vb6 error , usually for 'load control(array)' statement
 Originally Posted by winman
GDI handles are less than 2000
You have less than 2k GDI handles in use just *when* the Load statement is failing?
cheers,
</wqw>
-
Feb 2nd, 2019, 06:22 AM
#5
Thread Starter
Addicted Member
Re: Random Vb6 error , usually for 'load control(array)' statement
 Originally Posted by wqweto
Can you look in task manager how many GDI handles your process is using when this error occurs. There is a hard limit of 10k
GDI handles are between 2k to 3k when the program is running.
-
Feb 2nd, 2019, 08:29 AM
#6
Re: Random Vb6 error , usually for 'load control(array)' statement
 Originally Posted by winman
GDI handles are between 2k to 3k when the program is running.
Can you instrument your error handling code on the failing Load statement to dump GDI and OS objects counts? Might want to include RAM used by process too.
Doubt you can investigate this problem w/o some coding effort.
-
Feb 2nd, 2019, 08:44 AM
#7
Re: Random Vb6 error , usually for 'load control(array)' statement
Do you have the source code for the ocx?
Was the ocx registered via a setup.exe or manually? Or if using SxS manifests?
Do you know if the ocx removed the option to dynamically "upgrade activex controls" (which is default to true)?
Is there any chance that the ocx is dynamically registering/unregistering stuff?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|