[vwnc] Problem when changing icon of windows folder

View: New views
4 Messages — Rating Filter:   Alert me  

[vwnc] Problem when changing icon of windows folder

by Philippe Demaecker :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

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
vwnc@...
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

Parent Message unknown Re: [vwnc] Problem when changing icon of windows folder

by Alan Knight-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
Content-Type: multipart/related;
         boundary="_005_5044A277360FA74383740D339171BEA27826750823mgxmailbrusse_";
         type="multipart/alternative"

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
vwnc@...
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc



--
Alan Knight [|], Engineering Manager, Cincom Smalltalk
knight@...
aknight@...
http://www.cincom.com/smalltalk

_______________________________________________
vwnc mailing list
vwnc@...
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

Re: [vwnc] Problem when changing icon of windows folder

by Philippe Demaecker :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Thanks for the explanation, Alan.

 

From: Alan Knight [mailto:knight@...]
Sent: vrijdag 6 november 2009 0:10
To: Philippe Demaecker; vwnc@...
Subject: Re: [vwnc] Problem when changing icon of windows folder

 

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
Content-Type: multipart/related;
         boundary="_005_5044A277360FA74383740D339171BEA27826750823mgxmailbrusse_";
         type="multipart/alternative"

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:
[snip screenshot]
 
. the folder now shows the icon you just selected:
[snip screenshot]
. 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
vwnc@...
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc


_______________________________________________
vwnc mailing list
vwnc@...
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

Parent Message unknown Re: [vwnc] Problem when changing icon of windows folder

by Steven Kelly :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

And the fix (in any version prior to 7.7) is to add:

 

PCFilename>>isWritable

   ^super isWritable or: [self isDirectory]

 

Steve

 

From: vwnc-bounces@... [mailto:vwnc-bounces@...] On Behalf Of Philippe Demaecker
Sent: 06 November 2009 10:15
To: vwnc@...
Subject: Re: [vwnc] Problem when changing icon of windows folder

 

Thanks for the explanation, Alan.

 

From: Alan Knight [mailto:knight@...]
Sent: vrijdag 6 november 2009 0:10
To: Philippe Demaecker; vwnc@...
Subject: Re: [vwnc] Problem when changing icon of windows folder

 

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
Content-Type: multipart/related;
         boundary="_005_5044A277360FA74383740D339171BEA27826750823mgxmailbrusse_";
         type="multipart/alternative"

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:
[snip screenshot]
 
. the folder now shows the icon you just selected:
[snip screenshot]
. 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
vwnc@...
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc


_______________________________________________
vwnc mailing list
vwnc@...
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc