Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 03, 2016, 12:56:16 AM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Strange problem with default screenshot directory on network drive  (Read 2262 times)

sba

  • Member
  • Joined in 2007
  • **
  • default avatar
  • Posts: 51
    • View Profile
    • Donate to Member
On my home desktop the "My documents" directory is stored on a network drive on my NAS. This results in Screenshot Captor defaulting to:

S:\DOC\DonationCoder\ScreenshotCaptor\Screenshots

to store the screenshots.

The behavior of the latest version with this setup is strange.

Often when the machine wakes up from hibernation I get one of the following errors:

- Error creating non-existing directory: 'S:\DOC\DonationCoder\ScreenshotCaptor\Screenshots'.
- (even weirder) "The is no disk in drive. Insert a disk in drive A: / Cancel / Try Again / Continue"

For now, I'll work around this by forcing the screenshots to be stored on a local drive, but this is inconvenient as I cannot access them anymore from my laptop...

Any clue?

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,405
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Strange problem with default screenshot directory on network drive
« Reply #1 on: April 28, 2013, 04:40:24 PM »
That sounds really annoying.. sounds like when system wakes up from hibernation its returning file creation errors.. I will see if i can't find a way to deal with that -- like detecting if the drive is a network drive and if so trying to pause and wait for drive to wake up before throwing that error.

The second error about "no disk in drive" -- does that always happen AFTER the first error about "creating non-existing directory"?

And you said the error occurs then the machine wakes up from hibernation -- but do you really mean that it happens when the machine wakes up -- or do you mean it happens if you try to take a screenshot right after the machine wakes up?  Or do you mean it happens after the first screenshot taken after the system wakes up from hibernation, regardless of the delay since that time?

sba

  • Member
  • Joined in 2007
  • **
  • default avatar
  • Posts: 51
    • View Profile
    • Donate to Member
Re: Strange problem with default screenshot directory on network drive
« Reply #2 on: April 29, 2013, 12:39:15 AM »
I get either the directory creation error, or the A: drive. Don't think I ever got both in sequence.

That does happen right after the machine wakes up, not when I take a screenshot after the wake up.

Probably the OS takes some time to restore the network connection, and your code's faster at... doing something ;-)

jhines97

  • Participant
  • Joined in 2013
  • *
  • Posts: 17
    • View Profile
    • Donate to Member
Re: Strange problem with default screenshot directory on network drive
« Reply #3 on: August 13, 2013, 12:22:08 PM »
Is there a fix for this?  I am having the same issue.

Stoic Joker

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 6,294
    • View Profile
    • www.StoicJoker.com
    • Donate to Member
Re: Strange problem with default screenshot directory on network drive
« Reply #4 on: August 14, 2013, 11:47:45 AM »
I've actually seen quite a bit of odd/ill behavior with Windows (waking up cranky) in general if the My Documents folder is moved to a network drive (which also kills the start menu auto-search/indexing feature). This is due to Windows not always having the share access reopened completely before an application tries to get there.

If you browse to the network located My Documents folder, right click it, and select 'Always available offline'. It will enable the Client Side Cache (CSC) for all the files stored in the network location, and I suspect it may eliminate the errors.

Note: I've not tried using the above for this specific case, I'm only stating that it has resolved this type of behavior for me several times in the past.

If you have a large amount of data on the network drive, it will vary close to the same amount of space on your computer to cache it locally. So if you have a really large amount of data it would be prudent to only cache specific troublesome subfolders ... Instead of the entire My Documents parent folder.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,405
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Strange problem with default screenshot directory on network drive
« Reply #5 on: September 14, 2013, 11:54:45 AM »
This may be fixed in the latest version -- let me know if not.