Code center > Bugs and fixes

Internet toggle button! RESOLVED 2.43s

(1/3) > >>

Testlund:
Clicking on the internet toggle button will cause a crash displaying 'Runtime Error 5: Invalid procedure call or argument.'

I prefer not to be forced to use internet mode if I don't want to.  

Also I haven't configured any folders for it and I have no FTP client so I doubt it works anyway, but I guess it will try and communicate with the server nevertheless.

EricL:
I'll need more info than that as obviously there are a lot of people who click on the button and don't crash.  I certainly can't reproduce it without more specifics.   At least tell me the version you are using and post the sim you were running and whether you were enabiling or disabling Internet Mode.

You should not need to create any folders nor do you need any FTP client.  The folders will be created for you and DB contains all the FTP software necessary for communication.

Testlund:
Okay, here's some more info. It's version 2.43r and the above crash appears if I delete the lastexit files in the save and settings folder before I start the program. Then when I've closed the dialogs and see the lone teleporter flooting around and I click the 'internet toggle button' the above mensioned crash appears.

If I have been running a sim WITHOUT clicking the toggle button and quit the sim, then start the program again and let it load the lastexit file, then internet mode will be disabled instead. If I then click on the button I will get this error: Runtime error '35754': Unable to connect to remote host.

I've just tested a little more here and that toggle button seem totally screwd up. Sometimes it connects instead of disconnects when you click on it and vice versa. I know it because the firewall poped up a warning when I clicked to disable, but no warning when it was enabled. ...and sometimes the other way around.

Well, I'm testing when I'm writing this and now when I click on it it appears to be working as it should. I get dialog showing internet populations when I enable and no problems when disable. It just seem to be an unstable function.

EricL:
By deleting the lastexit files, you are telling the program that you are a new user, that DB has never been run on that computer.  I'm not sure why you are doing this (you can always load a sim after startup) but I made the recent change (by request) to have internet mode be the default mode for new users.  If there is no lastext.sim, I automatically enter internet mode at startup.  If there is, I don't.

What you are seeing via your firewall w.r.t. DB trying to communicate on the network when disabling IM is expected.  When you hit the IM button to leave IM, I attempt to delete the population file on the server for your sim as you are disconnecting from the megasim and I need to tell all the other sims your are leaving, so yes, communication on the network is attempted when you leave IM (or quit the program while in IM).  If you leave IM immediatly after entering IM, before 100 cycles typically, this attempt may be the first network communication attempted by DB.

The crashes are still very valid bugs, probably have to do with trying to close the Internet graphs when they arn't open.  In the new user start up path, I don't automatically open the internet mode log or populations graph so as to make the first time expereince as clean as possible.  I am probably trying to close them when they arn't open or somethign similar and this is the crash you are seeing.  I'll take a look, but if you figure out a deterministic way to cause the crashes, that would be useful.

Testlund:
The reason why I delete the lastexit files is because I can't start a new sim or load an existing one if I have those files in the folders, because the program force the lastexit files to load instead of my sim. I explained that in another topic but you couldn't reproduce that either. So maybe we have some differences in the operating system or DB install.

I don't know how to explain it better. Delete the lastexit files, start DB, click on 'internet toggle button'. That's the only thing that caused the runtime error 5.

Also I can mension that it doesn't work to close the program from the file menu or closing the dialog popup with the word 'sparsi' on it anylonger. Can only close by clicking on the X button in the upper right corner, but that's minor. Just thought I would mension it.

Navigation

[0] Message Index

[#] Next page

Go to full version