Darwinbots Forum

Code center => Bugs and fixes => Bug reports => Topic started by: Testlund on December 08, 2009, 11:37:12 AM

Title: Odd -p folder and hang when saving
Post by: Testlund on December 08, 2009, 11:37:12 AM
When quitting DB a folder named '-p' will sometimes be created in the main directory that doesn't contain anything, and when I try to save a sim this folder will be created in the save directory but the sim will not be saved. Instead the hour glass will freeze and nothing happens.
Title: Odd -p folder and hang when saving
Post by: Numsgil on December 08, 2009, 12:01:25 PM
Hmm, I saw this too actually.  Is this only with the version I just released?
Title: Odd -p folder and hang when saving
Post by: Testlund on December 08, 2009, 12:08:41 PM
Yes. I'm testing Internet mode right now and it seems to be working, but there's no one else online today.
Title: Odd -p folder and hang when saving
Post by: Numsgil on December 08, 2009, 12:36:54 PM
I have some spare computers at home I can run IM on.  I'll try to set them up this week or into next.
Title: Odd -p folder and hang when saving
Post by: Testlund on December 09, 2009, 10:20:32 AM
Maybe you can take a look at why it can't save properly too. DB puts a -p folder everywhere it tries to write to, except for the settings folder where the 'lastexit.set is saved. Could this have anything to do with runtime libraries perchance? What runtime library is this version made with?
Title: Odd -p folder and hang when saving
Post by: Numsgil on December 09, 2009, 02:07:23 PM
It's not a runtime issue.  Basically visual basic can only create one folder at a time.  So if it tries to create folder transfers/f1, and transfers doesn't already exist, it crashes.  So I replaced code like that with a call to md on the command line.  The -p is an argument I was trying to pass to mkdir to tell it to "also create all directories leading up to the given directory that do not exist already. If the given directory already exists, ignore the error.".  But I'm thinking that might be a unix only argument and on windows you don't need the -p at all.  It's getting interpreted as a folder to create instead.
Title: Odd -p folder and hang when saving
Post by: Numsgil on December 10, 2009, 12:16:20 AM
I've released a new version that should fix the -p folder thing.  Let me know if you notice anything else odd.
Title: Odd -p folder and hang when saving
Post by: Testlund on December 10, 2009, 09:06:40 AM
No change! Still creating -p folders and saving just hangs with an hour glass without saving anything. What did you do? Just changing the version number?  
Title: Odd -p folder and hang when saving
Post by: Numsgil on December 10, 2009, 02:49:48 PM
Argh!  I don't see why it's still doing that since I removed all -p references.  I'll take a look at it tonight.  Maybe I grabbed the wrong exe or something.