Click to See Complete Forum and Search --> : Getting Runtime error -2147024863 (8007021) Method of '~' Object '~' failed
afsalva
Feb 9th, 2007, 09:44 AM
I am getting the below error while running a VB 6 exe code. Can somebody
please help?
Runtime error -2147024863 (8007021)
Method of '~' Object '~' failed
Hack
Feb 9th, 2007, 10:19 AM
Welcome to the forums. :wave:
Is this from an ActiveX control that you built?
What line of code is giving you the error?
techgnome
Feb 9th, 2007, 10:37 AM
Muwhahaha..... there is no line of code where this happens... it happens as soon as you hit F5, right? Yeah... welcome to DLL H311! ... you've got some COM references that are screwed up. ... If you have multiple projects loaded, remove them one by one until the error goes away.... that would be the project that's causing your problem.... if you remove everything but the exe, and the problem is still there... invest in a registry cleaner....
-tg
afsalva
Feb 9th, 2007, 10:40 AM
Thanks for welcoming me.
Actually i have an exe program which was developed by another vendor and doesn't have the source code for that. So i don't have any idea about whcih line of code is giving me this error.
This question i guess is not related to ActiveX. I saw a similar error post in one of the thread and decided to post this question here. If you want you can move it to a relevant forum. But please inform me to where this is getting moved.
afsalva
Feb 9th, 2007, 11:06 AM
Muwhahaha..... there is no line of code where this happens... it happens as soon as you hit F5, right? Yeah... welcome to DLL H311! ... you've got some COM references that are screwed up. ... If you have multiple projects loaded, remove them one by one until the error goes away.... that would be the project that's causing your problem.... if you remove everything but the exe, and the problem is still there... invest in a registry cleaner....
-tg
Thanks for the reply.
But the problem is not coming when i use VB editor. This code has been developed around 1 year back and we have done some upgradation in servers where the program runs and the database runs. And didnt do any code change. So this may not be a code issue at all.
techgnome
Feb 9th, 2007, 12:19 PM
Oh wow.... that's gotta suck.... I still think it's registry based, but since you don't have access to the code, you may want to kick it back to the vendor and see what they come up with.
-tg
afsalva
Feb 9th, 2007, 01:59 PM
Oh wow.... that's gotta suck.... I still think it's registry based, but since you don't have access to the code, you may want to kick it back to the vendor and see what they come up with.
-tg
What should i do for the registry based solution?
techgnome
Feb 9th, 2007, 02:10 PM
Invest in a registry cleaner.... there used to be a tool from MS called RegClean (regclen.exe) but it was never supported, started an an internal tool that got leaked, and hasn't been available for some time.
-tg
Al42
Feb 9th, 2007, 06:05 PM
Try downloading RegClean from here (http://www.webdingers.com/RegClean.zip).
Dave Sell
Mar 6th, 2007, 02:22 PM
Thanks for welcoming me.
Actually i have an exe program which was developed by another vendor and doesn't have the source code for that. So i don't have any idea about whcih line of code is giving me this error.
This question i guess is not related to ActiveX. I saw a similar error post in one of the thread and decided to post this question here. If you want you can move it to a relevant forum. But please inform me to where this is getting moved.
Have you tried uninstalling and reinstalling the vendor's app?
afsalva
Mar 7th, 2007, 10:43 AM
Actually the program is just an exe file placed in a folder. We have created a scheduled task in windows to run the same in every one hour.
Hack
Mar 8th, 2007, 12:22 PM
Actually the program is just an exe file placed in a folder. We have created a scheduled task in windows to run the same in every one hour.But, if it is a VB program, then it requires an installation and setup package to run, so perhaps Dave's suggestion would be worth a try.
afsalva
Mar 8th, 2007, 11:01 PM
No installation files are there. Just an exe file. The file is getting executed as a schedule task in Windows.
techgnome
Mar 9th, 2007, 11:36 PM
What everyone is trying to tell you that you seem to be missing is that the application HAS to be properly INSTALLED.... this is to make sure that any DEPENDANT files are also placed onto the machine, and REGISTERED so that they can be used.
-tg
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.