Run time error message

When I am running me exe file (Coded in Visual Basic), I am getting this error message.


Run time error '-2147417848(80010108)'
Method '~' of object '~' failed.



Please let me know that how can I rid of it.

This message comes after 2 or 3 days, while contineously running this exe file
tparvaizAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

psmith789Commented:
Is that the literal message, or do you get some values in place of '~'?

You may be able to get more information if you incorporate an error handler in every routine that will pop up a message box with the routine name - may help to localize the error...
0
caraf_gCommented:
Nah, you've got some components messed up. Are you developing ActiveX components (OCX, DLL files?) It may be time to break binary compatibility on them...
0
Éric MoreauSenior .Net ConsultantCommented:
See article ID Q193339 in the Microsoft support online site.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

tparvaizAuthor Commented:
Thanks psmith789,
I am getting this error message:

Run time error '-2147417848(80010108)'
Method '~' of object '~' failed.

This is exactly what I've got.

Could you please tell me how can I incorporate an error handler?


Thanks for your time
0
tparvaizAuthor Commented:
Hi caraf_g!

You are right, this program is using some DLl and OCX files. Please advise me what to do

Thanks for your time
0
caraf_gCommented:
Did you create these DLL and OCX files?
0
tparvaizAuthor Commented:
No, I am trying to remove this error from someone's program.

Thanks
0
caraf_gCommented:
Sorry, let me rephrase that... Do you have the source code for the DLL and OCX files; could you re-compile them if necessary?
0
tparvaizAuthor Commented:
Yes I have it
0
tparvaizAuthor Commented:
Yes I have it
0
tparvaizAuthor Commented:
Yes I have it
0
caraf_gCommented:
Are they VB projects?
0
tparvaizAuthor Commented:
Yes
0
caraf_gCommented:
In that case, go to the project properties, and the Component tab. Set the compatibility option to No Compatibility.

Recompile the OCX and DLL files.

Now, every thing that references these files will complain that the references are missing. So for these projects, go into Project References, and uncheck all the ones that are flagged as MISSING:. If there are many, it would be a good idea to write down a list. Then close the project references dialog. Then open Project References again, and you'll see the missing files are back in the list; select them again.

That MIGHT solve your problem.

Another reason could be that you're using 3rd party controls that are dependent on OCXes and DLLs and something has gone out of sync there. In that case there's not much I can suggest to help you as each case is different...
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.