Rintime Error 91

darkforcesjedi
06-10-2003, 04:08 PM
I have a program that produced a Runtime error 91 ("object variable or with block variable not set") on a computer. I installed VB on the computer to debug the problem locally. Now the problem doesn't occur. There are other computers having this problem running my program. What could installing VB change that would make the program work? I don't want to install VB on all the affected computers. This only seems to happen on Windows 98/ME computers (not all of them...just a few), but I can't be sure it won't happen on others.

reboot
06-10-2003, 04:12 PM
Installing VB added whatever files you were missing that your program needs. Make a setup for your program, you can't just copy the exe.

vb-dred
06-10-2003, 04:14 PM
its probably the visual basic runtime files. i dunno.. some programs is required the vb runtimes files to run

darkforcesjedi
06-10-2003, 04:14 PM
No...I made a dependency file to list all the required files for my program. These files are present on all the problematic machines. These are the referenced files, which are the same file versions on the working and not working machines:

Uses1=msvbvm60.dll
Uses2=OLEAUT32.DLL
Uses3=OLEPRO32.DLL
Uses4=ASYCFILT.DLL
Uses5=STDOLE2.TLB
Uses6=COMCAT.DLL
Uses7=scrrun.dll
Uses8=MSCOMCTL.OCX
Uses9=MSCOMCT2.OCX
Uses10=comdlg32.ocx
Uses11=TABCTL32.OCX

reboot
06-10-2003, 04:16 PM
Then some/one of them were the wrong versions. That's the only explanation.

vb-dred
06-10-2003, 04:17 PM
you most likely need the ocxs. if you have progress bars, windows common control etc.

you can get the ocx files at 'your windows dir'\system32

darkforcesjedi
06-10-2003, 04:17 PM
I copied the files from the design machine to all the machines I'm using my program on. They're the same files!

n00blar
06-10-2003, 04:30 PM
try registering all the ocx's... open a dos console and type "regsvr32 c:\somefolder\somefolder\someocx.ocx"

darkforcesjedi
06-10-2003, 04:36 PM
That doesnt work no Windows 98.

Localhost
06-10-2003, 04:56 PM
i'm pretty sure regsvr works on 98...you probobly typed it wrong.

darkforcesjedi
06-10-2003, 05:49 PM
You're right. I must have mistyped it!

darkforcesjedi
06-11-2003, 06:28 AM
Well this still doesn't seem to fix the problem.

anomaly
06-11-2003, 06:40 AM
i forget who gave this to me, squirm, volteface...dunno, but its a lil reg hack to make installing dll's and ocx's easier via a right click option, pretty swift anyways

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum