General discussion

Locked

Runtime Error **- Object variable or wit

By protocoldm ·
I am doing tech support for a software company. Our software runs on VB 5.0. After clicking on the icon to start our program,some of our customers are getting the error message: Run Time Error **-Object Variable or With block variable not set.

They are running IE 5.5. and the error usually occurs on a ME machine but has occured once on a WIN 98 machine. They do not really show any similar programs running in Task Manager. I can not recreate the problem on my machine.

Does anyone have any idea what else I can look into? Also, what about registering Msvbvm50.dll by going to start/run and typing in Regsvr32.exe msvbvm50.dll? Or what if I just have them delete the msvbvm50.dll, e-mail them msvbvm50.exe and have them run the .exe to replace the msvbvm50.dll file? Does this file really have anything to do with error: Run Time Error **?

Any Advice would be greatly appreciated. (By the way, I am not a VB programmer).

This conversation is currently closed to new comments.

6 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Runtime Error **- Object variable or wit

by Crowmoor In reply to Runtime Error **- Object ...

Hi!

Do you have VB installed at the users? If so you could check the references. Its probably so that they have a different verioson of ADO or DAO registred. There are a shortcut in checking the dll:s and its through the references in Access or Excel 97. If you go into the VBA-editor there and look under tools/References you find all registred Dll:s in the mashine. Compare this with your list in VB.

Your id? about regsrv32 is correct but the file you should use is the one thats missing at the clients. If you register it then its available for VB and your program will run. Don?t bother replacing the exe-file. Its not the problem.

BTW, this is called the dllhell. Welcome to programmings wonderful world.

Jesper

Collapse -

Runtime Error **- Object variable or wit

by protocoldm In reply to Runtime Error 91- Object ...

Poster rated this answer

Collapse -

Runtime Error **- Object variable or wit

by protocoldm In reply to Runtime Error **- Object ...

Jesper,
Thank you for your answer,and the humor. I am not sure I understand some of your answer. (BTW, I didn't mention before that I walked the customer through uninstaling and reinstalling our software + cleaning out the registry and still get the run time ** error.) These are new users and do not have Excel or Access on their comp. (They are also not local. Troubleshooting has to be done over the phone.)I am not sure how to find the VB editor if they did? I can have them go to:start/programs/accessories/system tools/system information/software environment/loaded modules and have them mail me all their dll's and compare to my machine here. Is this similar to what you were suggesting? Also, couldn't I have them do a search for just "DOA" and "ADO" and check the versions, then use regsvr32 to re-register them? Forgive my lack of knowlege, but some of this is greek to me. Basically, all I was told was our multimedia software is giving this error message. It uses VB 5.0. Solve it. I have never studied VB.
(But I was thinking about it.) I did think after reading a little about "DOA" and "ADO", that these had to do with MSAccess. Will it help my problem with our multimedia software on these users machines for me to research thesefiles as I described above? Thank you again.

Collapse -

Runtime Error **- Object variable or wit

by karlww In reply to Runtime Error **- Object ...

I hate to say this but it sounds like your company's developers need to implement some more robust error handling in the code.

Error ** basically means somewhere the code attempts to use an object variable (of any type) that is not initialized toanything (in VB it "Is Nothing").

Collapse -

Runtime Error **- Object variable or wit

by protocoldm In reply to Runtime Error 91- Object ...

Poster rated this answer

Collapse -

Runtime Error **- Object variable or wit

by protocoldm In reply to Runtime Error **- Object ...

This question was closed by the author

Back to Windows Forum
6 total posts (Page 1 of 1)  

Related Discussions

Related Forums