Results 1 to 14 of 14

Thread: Getting Runtime error -2147024863 (8007021) Method of '~' Object '~' failed

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2007
    Posts
    6

    Getting Runtime error -2147024863 (8007021) Method of '~' Object '~' failed

    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

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Getting Runtime error -2147024863 (8007021) Method of '~' Object '~' failed

    Welcome to the forums.

    Is this from an ActiveX control that you built?

    What line of code is giving you the error?

  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Getting Runtime error -2147024863 (8007021) Method of '~' Object '~' failed

    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
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  4. #4

    Thread Starter
    New Member
    Join Date
    Feb 2007
    Posts
    6

    Re: Getting Runtime error -2147024863 (8007021) Method of '~' Object '~' failed

    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.

  5. #5

    Thread Starter
    New Member
    Join Date
    Feb 2007
    Posts
    6

    Re: Getting Runtime error -2147024863 (8007021) Method of '~' Object '~' failed

    Quote Originally Posted by techgnome
    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.

  6. #6
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Getting Runtime error -2147024863 (8007021) Method of '~' Object '~' failed

    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
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  7. #7

    Thread Starter
    New Member
    Join Date
    Feb 2007
    Posts
    6

    Re: Getting Runtime error -2147024863 (8007021) Method of '~' Object '~' failed

    Quote Originally Posted by techgnome
    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?

  8. #8
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Getting Runtime error -2147024863 (8007021) Method of '~' Object '~' failed

    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
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  9. #9
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: Getting Runtime error -2147024863 (8007021) Method of '~' Object '~' failed

    Try downloading RegClean from here.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  10. #10
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: Getting Runtime error -2147024863 (8007021) Method of '~' Object '~' failed

    Quote Originally Posted by afsalva
    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?
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  11. #11

    Thread Starter
    New Member
    Join Date
    Feb 2007
    Posts
    6

    Re: Getting Runtime error -2147024863 (8007021) Method of '~' Object '~' failed

    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.

  12. #12
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Getting Runtime error -2147024863 (8007021) Method of '~' Object '~' failed

    Quote Originally Posted by afsalva
    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.

  13. #13

    Thread Starter
    New Member
    Join Date
    Feb 2007
    Posts
    6

    Re: Getting Runtime error -2147024863 (8007021) Method of '~' Object '~' failed

    No installation files are there. Just an exe file. The file is getting executed as a schedule task in Windows.

  14. #14
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Getting Runtime error -2147024863 (8007021) Method of '~' Object '~' failed

    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
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width