IDE (pb451)- "Cannot save Source code!"

Everything else that doesn't fall into one of the other PB categories.
#NULL
Addict
Addict
Posts: 1504
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

IDE (pb451)- "Cannot save Source code!"

Post by #NULL »

did anyone had such a problem saving source code files with pb451 final?
i have a project and can't save changes i make to the files. i don't have that problem with other files outside of the project directory nor with pb451RC2. also i can make a copy of such a file and then i can modify it and save it back to disk. the files are not set to readonly.
does anyone have an idea what causes this or what i could try to get my files working with pb451?

another thing is that pasting (cntrl-v or from menu) often doesn't work.
swan
Enthusiast
Enthusiast
Posts: 227
Joined: Sat Jul 03, 2004 9:04 am
Location: Sydney Australia
Contact:

Re: IDE (pb451)- "Cannot save Source code!"

Post by swan »

Bizzar
I certainly don't have that problem. Your post has had more that 50 views and no one else confirming it. You'd have to say it's unique to your machine.
#NULL
Addict
Addict
Posts: 1504
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

Re: IDE (pb451)- "Cannot save Source code!"

Post by #NULL »

probably yes.
i made a copy of that project directory and then i was able to continue working with it.

but still sometimes i can't 'paste' in pb451-final.
AndyMK
Enthusiast
Enthusiast
Posts: 587
Joined: Wed Jul 12, 2006 4:38 pm
Location: UK

Re: IDE (pb451)- "Cannot save Source code!"

Post by AndyMK »

If you are using vista/win7 and you are saving your source in the default pb folder located in program files folder, you may need to start pb with administrator privileges. I always load and save my source from another location. Saving files to folders in program files folder requires administrator privileges no matter what you use unless you disable UAC or start the app that saves the files with admin. I noticed this when loading source from the pb examples folder. Hope this helps.
#NULL
Addict
Addict
Posts: 1504
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

Re: IDE (pb451)- "Cannot save Source code!"

Post by #NULL »

i'm using Windows XP as admin.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: IDE (pb451)- "Cannot save Source code!"

Post by ts-soft »

have you used svn or anything else and reinstalled windows on another harddisk?
make a look on the properties of the projekt dir.
freak
PureBasic Team
PureBasic Team
Posts: 5962
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: IDE (pb451)- "Cannot save Source code!"

Post by freak »

You only get this message if the file cannot be created (CreateFile() fails). So you either don't have enough rights to write the file, or the target is readonly.
quidquid Latine dictum sit altum videtur
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Re: IDE (pb451)- "Cannot save Source code!"

Post by Trond »

Or some other program has the file opened.
#NULL
Addict
Addict
Posts: 1504
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

Re: IDE (pb451)- "Cannot save Source code!"

Post by #NULL »

yesterday i fiddled a bit with file ownership / user permissions / folder settings etc. but even with reboot it didn't solve it.
BUT, now it works without me knowing why. the canges i made in my comodo settings (regarding some other forum thread) should not have affected anything about this pb installation or that project folder, but i can't rule that out.
..seems like a day to solve problems :lol:

anyway, thanks for looking at it.
Post Reply