Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who is Online
1 user(s) are online (1 user(s) are browsing Forum)

Members: 0
Guests: 1

more...


Browsing this Thread:   1 Anonymous Users






Re: Editor NOT saving modified projects again
#5
Home away from home
Home away from home


See User information
Thanks for caring about this :)

Posted on: 2012/2/5 21:28
p.bes
Icaros Desktop AROS distribution mantainer
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Editor NOT saving modified projects again
#4
Home away from home
Home away from home


See User information
Thank you,I didn't know that.
Fix is committed.

Posted on: 2012/2/5 14:02
"Programming is an art form that fights back."
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Editor NOT saving modified projects again
#3
Home away from home
Home away from home


See User information
I think it might be better to not use SetFileSize(), as some filesystems don't support it well (or at all if we consider 68k too). Instead you could Examine() the old file beforehand, then save the file with MODE_NEWFILE, then set the old flags with SetProtect().

Posted on: 2012/2/5 12:07
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Editor NOT saving modified projects again
#2
Home away from home
Home away from home


See User information
Heh,maybe this papercut is cursed...
(or it is just me)

I make some tests and here it works fine
under linux-hosted and native RAM: or SFS
...but fails under FAT file system.

apparently SetFileSize didnt work?

Purpose of this exercise is preserve the file flags:
/* first try if file already exist */
    
if( (fh = Open(name, MODE_OLDFILE)) )
    {
        
SetFileSize(fh, 0, OFFSET_BEGINNING);
    }
    else
    {
        
/* No,open new file */
        
fh = Open(name, MODE_NEWFILE);
        
newfile=TRUE;
    }


Posted on: 2012/2/5 9:42
"Programming is an art form that fights back."
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Editor NOT saving modified projects again
#1
Home away from home
Home away from home


See User information
Hello, I've recently updated my system files with feb 2nd 2012 nightly build (ABIv0), but I got a unpleasant surprise: Editor doesn't update projects again when using the file > Save option. I can save to another file, but not save to current one. Wasn't this fixed with a papercut some weeks ago?

Addition: I was trying to save a project on a FAT USB pendrive.

Posted on: 2012/2/5 0:31

Edited by paolone on 2012/2/5 9:29:40
p.bes
Icaros Desktop AROS distribution mantainer
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 







You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.

[Advanced Search]


Search
Top Posters
1 paolone
paolone
4462
2 nikolaos
nikolaos
4206
3 magorium
magorium
4095
4 phoenixkonsole
phoenixkonsole
3942
5 deadwood
deadwood
2917
6 ncafferkey
ncafferkey
2810
7 mazze
mazze
2222
8 Kalamatee
Kalamatee
2212
9 clusteruk
clusteruk
2114
Powered by XOOPS © 2001-2025 The XOOPS Project