Help - Search - Members - Calendar
Full Version: Vista issue?
AC Tools Everything Macro > Other Scripting Tools > Skunkworks
solitus
I have a compiled script that works great in XP, have tried it on several computers and all works fine,

When my friend tried to start it in Vista he gets an error in the .vbs file that starts the script.

when it comes to line 11 Call obj.Main() he gets an error message and the script doesnt start. I dont have the error message, but ill post that later. I thought mabye someone else with Vista have run in to the same problem.

any ideas?
solitus
QUOTE(solitus @ Mar 7 2008, 03:37 AM) *
I have a compiled script that works great in XP, have tried it on several computers and all works fine,

When my friend tried to start it in Vista he gets an error in the .vbs file that starts the script.

when it comes to line 11 Call obj.Main() he gets an error message and the script doesnt start. I dont have the error message, but ill post that later. I thought mabye someone else with Vista have run in to the same problem.

any ideas?


this is the error message

>> Script error in TankpalX.vbs line 11: Object variable or With block variable not set
Script exited with errors.
GKusnick
Apparently the obj variable hasn't been initialized properly. My guess is that your DLL didn't get registered properly on his machine.
solitus
QUOTE(GKusnick @ Mar 10 2008, 01:40 PM) *
Apparently the obj variable hasn't been initialized properly. My guess is that your DLL didn't get registered properly on his machine.



lol oki, i hope its so easy.. ill tell them to run regsvr32 and regiser the dll manually
solitus
Tryed to register the dll with regsvr32 but still get the same message.

i also gave him my workinig .dll to try.. just to make sure nothing was wrong with the installer.. but still the same.


what i would like to know if this is a vista issue, or an error in the code. prolly hard to answer.. but mabye i get lucky in here=)
GKusnick
Nobody's going to be able to tell you much without more info. When you tried to register the DLL, did the registration succeed?

You said the error happens on line 11. What happens on lines 1-10? Do they do what they're supposed to do? Have you inserted any debug code to find out?

Same goes with the compiled DLL. Do you have any way of telling whether execution is getting into the DLL at all? If an error happens during initialization of your object, would you know it? Do you have any error handling or logging code in there to tell you what's going on?
solitus
QUOTE(GKusnick @ Mar 13 2008, 11:44 AM) *
Nobody's going to be able to tell you much without more info. When you tried to register the DLL, did the registration succeed?

You said the error happens on line 11. What happens on lines 1-10? Do they do what they're supposed to do? Have you inserted any debug code to find out?

Same goes with the compiled DLL. Do you have any way of telling whether execution is getting into the DLL at all? If an error happens during initialization of your object, would you know it? Do you have any error handling or logging code in there to tell you what's going on?



sent you a PM greg.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.