Author Topic: Odd -p folder and hang when saving  (Read 1116 times)

Offline Testlund

  • Bot God
  • *****
  • Posts: 1573
    • View Profile
    • Games And Electronica
Odd -p folder and hang when saving
« 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.
« Last Edit: December 08, 2009, 11:39:22 AM by Testlund »
"God is an ever receding pocket of scientific ignorence." - Neil DeGrasse Tyson

"God is a kid with an ant farm" - Constantine

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7708
    • View Profile
Odd -p folder and hang when saving
« Reply #1 on: December 08, 2009, 12:01:25 PM »
Hmm, I saw this too actually.  Is this only with the version I just released?

Offline Testlund

  • Bot God
  • *****
  • Posts: 1573
    • View Profile
    • Games And Electronica
Odd -p folder and hang when saving
« Reply #2 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.
"God is an ever receding pocket of scientific ignorence." - Neil DeGrasse Tyson

"God is a kid with an ant farm" - Constantine

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7708
    • View Profile
Odd -p folder and hang when saving
« Reply #3 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.

Offline Testlund

  • Bot God
  • *****
  • Posts: 1573
    • View Profile
    • Games And Electronica
Odd -p folder and hang when saving
« Reply #4 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?
"God is an ever receding pocket of scientific ignorence." - Neil DeGrasse Tyson

"God is a kid with an ant farm" - Constantine

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7708
    • View Profile
Odd -p folder and hang when saving
« Reply #5 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.

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7708
    • View Profile
Odd -p folder and hang when saving
« Reply #6 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.

Offline Testlund

  • Bot God
  • *****
  • Posts: 1573
    • View Profile
    • Games And Electronica
Odd -p folder and hang when saving
« Reply #7 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?  
"God is an ever receding pocket of scientific ignorence." - Neil DeGrasse Tyson

"God is a kid with an ant farm" - Constantine

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7708
    • View Profile
Odd -p folder and hang when saving
« Reply #8 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.