GPWiki.org
GPWiki.org
It is currently Wed Jun 19, 2013 12:32 pm

All times are UTC




Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: strange pickle
PostPosted: Fri Feb 06, 2009 3:12 am 
Grand Optimizer
User avatar

Joined: Mon Jan 17, 2005 6:01 pm
Posts: 353
Location: Canada
I've compiled the current iteration of my game, and sent it to a couple of friends.

Friend A has no problem running it.
Friend B gets a compile related error "block variable without with variable not set" or something to that effect.

Thats a compile error, why would it work on 2 ppls comps and not 1? Why would it even compile at my end? it should have given me this error, and not even so much as let me run my program, let alone compile it.

so confused! :confused

Anyone have any ideas why this may be? both people have same version of program, and supporting dll's

Thanks in advance!

_________________
"None are more hopelessly enslaved than those who falsely believe they are free."
"It is no measure of health to be well adjusted to a profoundly sick society."
"Hope is the first step on the road to dissapointment." -Jonah Orion
http://tankzgame.blogspot.com


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 06, 2009 5:13 am 
Level 1 Cleric

Joined: Sun Mar 11, 2007 12:00 am
Posts: 10
Can you include the line of code this is happening on?

Are you sure the dll's are registered on their comps. I'm pretty sure that error happens when it can't find the DLL


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 06, 2009 5:34 am 
Dexterous Droid

Joined: Fri Aug 19, 2005 10:34 am
Posts: 3650
In my years of experience in VB6, "block variable without with variable not set" can be just about anything. The automatic error messages are, generally, quite useless.

Are you sure they have all the needed DLLs and OCXs, and all properly registered? Any chance they could have screwed up the file structure or any of the files?

Easiest thing, but usually not possible, is to run the program through the IDE on the problem computer. Other than that... you are pretty much stuck with "guess and check".

_________________
NetGore - Open source online RPG engine


Top
 Profile  
 
 Post subject: hmm
PostPosted: Fri Feb 06, 2009 12:37 pm 
Grand Optimizer
User avatar

Joined: Mon Jan 17, 2005 6:01 pm
Posts: 353
Location: Canada
i cant include the line of code this refers to, because it compiles on my machine without error, and my friend doesn't have/know vb, so he just gets the error on startup.

i suppose it's possible he no longer has the dll registered (somehow), but ive sent him previous versions which worked fine. He hasn't altered the registraton of that DLL since.

Thanks for the replies, il keep poking at it.

_________________
"None are more hopelessly enslaved than those who falsely believe they are free."
"It is no measure of health to be well adjusted to a profoundly sick society."
"Hope is the first step on the road to dissapointment." -Jonah Orion
http://tankzgame.blogspot.com


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 06, 2009 12:46 pm 
King Code Monkey
User avatar

Joined: Wed Sep 01, 2004 3:05 pm
Posts: 11199
Location: Abingdon, MD
You need to add code that outputs a status after every operation that could fail so you can see what line is causing the problem.

_________________
Bored? Head on over to my blog and see what I'm up to.

Microsoft XNA MVP


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 06, 2009 1:23 pm 
Corpse Bride
User avatar

Joined: Tue Jul 01, 2008 11:44 pm
Posts: 2217
Location: England
I think it's unlikely to be a syntax error if it does compile on one machine but not another.

So what is being compiled on the friends machine? ...

Is it a full set of forms, modules, the .vbp etc, or just a selection of these that is being loaded? You should always keep the full set of files together, and load them through the vbp, rather than double clicking an frm or mod.

Make sure that any relevant References are enabled before compiling. (Is it in the project menu?) Look in the .vbp (open as text) to see which references are mentioned, and make sure friend has all of these dll's / ocx's installed, and not some alternative versions of them, (particularly important for ocx's).

Lastly, is it a different version of the vb compiler?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 06, 2009 1:53 pm 
Funky Monkey

Joined: Mon Aug 16, 2004 2:48 pm
Posts: 1604
Location: Minneapolis, MN USA
Does the friend who cannot run it have the VB RunTime files installed on their comp?

-Bryk

_________________
www.mwgames.com ... Dicey Curves, Space Mission, Jump Gate, Gem Raider, DareBase, Castle Danger, Keeps & Moats Chess


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 06, 2009 2:13 pm 
Corpse Bride
User avatar

Joined: Tue Jul 01, 2008 11:44 pm
Posts: 2217
Location: England
Brykovian wrote:
Does the friend who cannot run it have the VB RunTime files installed on their comp?

-Bryk


As a long shot, what about system locality settings? Could that change the meaning of the text being interpreted, like messing around with punctuation symbols ($ % & # etc) vb6 files are saved in plain ascii aren't they?

Note that punctuation characters are used in the vbp where it specifies the references.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 06, 2009 2:28 pm 
Bibliotherapist
User avatar

Joined: Wed Dec 21, 2005 6:23 pm
Posts: 6210
Location: Manchester, UK
Jasmine wrote:
Brykovian wrote:
Does the friend who cannot run it have the VB RunTime files installed on their comp?

-Bryk


As a long shot, what about system locality settings? Could that change the meaning of the text being interpreted, like messing around with punctuation symbols ($ % & # etc) vb6 files are saved in plain ascii aren't they?

Note that punctuation characters are used in the vbp where it specifies the references.


Not unless VB6 is being very stupid and using extended ASCII characters as special characters. Standard ASCII characters (so < 128) are standard across all ASCII code pages, so system locality settings shouldn't change them around. All standard punctuation is in standard ASCII btw (apart from £ for us brits anyway :P)

_________________
God must love stupid people, he made so many.
theraje: 'God doesn't love stupid people, they're just easier to make'
http://sharedillusions.blogspot.com


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 06, 2009 3:25 pm 
Mumbo Jumbo
User avatar

Joined: Fri Aug 20, 2004 1:15 pm
Posts: 804
Location: Michigan, USA
my best guess is to have your friend re-install the vb runtime files

_________________
The path to hell is paved with clever code.


Top
 Profile  
 
 Post subject: Re: hmm
PostPosted: Fri Feb 06, 2009 5:14 pm 
Funky Monkey

Joined: Mon Aug 16, 2004 2:48 pm
Posts: 1604
Location: Minneapolis, MN USA
Jimbo wrote:
i suppose it's possible he no longer has the dll registered (somehow), but ive sent him previous versions which worked fine. He hasn't altered the registraton of that DLL since.


I just noticed this part ... try having them un-register your DLL then register the latest version of it.

-Bryk

_________________
www.mwgames.com ... Dicey Curves, Space Mission, Jump Gate, Gem Raider, DareBase, Castle Danger, Keeps & Moats Chess


Top
 Profile  
 
 Post subject: hmm
PostPosted: Sat Feb 07, 2009 3:09 pm 
Grand Optimizer
User avatar

Joined: Mon Jan 17, 2005 6:01 pm
Posts: 353
Location: Canada
Jasmine wrote:
Lastly, is it a different version of the vb compiler?


I'm compiling it under VB5 :O

I always open my project through the vbp, all the references are there.
Neither of my friends have VB at all, so im not sure if that would mean that they dont have the "VB Runtime Library" or not. Im basically just sending them the compiled .EXE file along with a folder of support graphics (which il toss into a resource file later on in the project)

How would they go about installing(or re-installing) the VB Runtime files if that's nessesary?

Thanks!

_________________
"None are more hopelessly enslaved than those who falsely believe they are free."
"It is no measure of health to be well adjusted to a profoundly sick society."
"Hope is the first step on the road to dissapointment." -Jonah Orion
http://tankzgame.blogspot.com


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 07, 2009 3:23 pm 
Corpse Bride
User avatar

Joined: Tue Jul 01, 2008 11:44 pm
Posts: 2217
Location: England
I believe vb5 uses a different set of runtime files than vb6. That may be the problem. They'll need the vb5 runtime files.

http://support.microsoft.com/kb/180071

The vb6 files are here

http://support.microsoft.com/kb/192461/EN-US/

If you install both of those and see what happens on your friends machine, and see if your project will run / compile on it then. :)

dll's don't often go wrong, and vb isn't so complicated that it's likely to go wrong. But if you wanted to reinstall these things, I don't think windows manages their installation, so you can't uninstall like with most modern packages. You'd have to find and delete the dll manually, and then run the above installers.

Good luck Jimbo :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group