Hello list, I’m having trouble making a snapshot
of a vanilla image that is located in a folder with a customized icon. OS is Vista, can be reproduced with both a
7.4 and 7.6 vanilla image, also on my colleague’s PC. Scenario: . create a new folder c:\TEST . change the icon of this folder to another
one: . the folder now shows the icon you just
selected: . next, copy a vanilla image in this
folder (7.4.1 or 7.6) and open it . save the image with another name . you get error: “snapshot file
can not be written” Snapshot(Object)>>error: Snapshot>>setUpForSnapshot optimized [] in Snapshot>>snapshot BlockClosure>>ensure: Snapshot class>>withSnapshot:do: Snapshot>>snapshot Snapshot>>saveDialogThenQuit: ObjectMemory
class>>saveDialogThenQuit: Any ideas? Best, Philippe _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
That's because, when you change the icon, Windows sets the
read-only bit on the folder. VisualWorks foolishly interprets this as
meaning that the folder is read-only. This is fixed in 7.7, where we
ignore the read-only bit on directories under Windows.
At 08:19 AM 2009-11-05, Philippe Demaecker wrote: Content-Language: en-US -- Alan Knight [|], Engineering Manager, Cincom Smalltalk [hidden email] [hidden email] http://www.cincom.com/smalltalk _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Thanks for the explanation, Alan. From: Alan Knight [mailto:[hidden email]] That's because, when you change the icon, Windows sets the
read-only bit on the folder. VisualWorks foolishly interprets this as meaning
that the folder is read-only. This is fixed in 7.7, where we ignore the read-only
bit on directories under Windows. Content-Language: en-US _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
In reply to this post by Philippe Demaecker
And the fix (in any version prior to 7.7) is to add: PCFilename>>isWritable ^super isWritable or: [self isDirectory] Steve From:
[hidden email] [mailto:[hidden email]] On Behalf Of Philippe
Demaecker Thanks for the explanation, Alan. From: Alan Knight
[mailto:[hidden email]] That's
because, when you change the icon, Windows sets the read-only bit on the
folder. VisualWorks foolishly interprets this as meaning that the folder is
read-only. This is fixed in 7.7, where we ignore the read-only bit on
directories under Windows. Content-Language: en-US _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Free forum by Nabble | Edit this page |