ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Screenshot Captor

BUG: Save location remains in use

(1/2) > >>

dbareis:
Hi,

If I capture an image as use File->Save copy of image as" then later try to move or delete the directory this will fail, for some strange reason the program either changes its current directory to the destination (in which case it should restore it) or keeps the directory open.  Need to restart the program to be able to continue.

This has happened in older versions as well but currently I'm using v2.93.01

>:(

mouser:
strange.  ill try to fix.

f0dder:
This is pretty normal behavior - when you use the Get{Open,Save}FileName functions, Windows changes the process' (yes, it's per-process and not per-thread!) current working directory, and you have to actively save/restore the CWD if you don't want that behavior.

Keep in mind that OFN_NOCHANGEDIR "is ineffective for GetOpenFileName", so you might want to do manual CWD save/restore even though that flag exists. I seem to recall OFN_NOCHANGEDIR not working on some (ancient by now :)) Windows versions, but might just have confused that with not having effect for GOFN.

dbareis:
Windows is just one big bag of bugs, the issue that prompted my post was on WINXP SP3 but pretty sure it also occurs at home on WIN7 64 bit.

mouser:
thanks for that info f0dder, that helps.

Navigation

[0] Message Index

[#] Next page

Go to full version