Author Topic: permisson error and homepage resetting  (Read 21915 times)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: permisson error and homepage resetting
« Reply #15 on: May 31, 2012, 01:21:08 am »
How do I  patch my Adobe products (sorry for the newbie question but I dont work with adobe that much, unless the occasional "Time to update" window pops up)

If you re-boot the time to update window should appear if the adobe product needs it.
That is the way I do it.

But, I also use an update manager software that checks it.
Called Secunia Personal Software Inspector (PSI) from http://secunia.com/vulnerability_scanning/personal/

Installing it is overkill for now; I would update the other items first.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: permisson error and homepage resetting
« Reply #16 on: May 31, 2012, 01:24:03 am »

Thats the thing though. My comp just came back clean from the comp tech store.

I tried it on my PC (also clean) and had the same issues.

That really only means the problem is not one detected by yours or the tech store software.
Unless they reformatted it, it could still be infected.

WARNING: Do NOT stick any device in your brothers computer; you may have an infected flash drive.

NOTE: Using your desktop as the place to do your projects IS a very bad idea.
Your virus protection software might be blocking it.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline epaul

  • Multiple posting newcomer
  • *
  • Posts: 21
Re: permisson error and homepage resetting
« Reply #17 on: May 31, 2012, 01:30:31 am »

Thats the thing though. My comp just came back clean from the comp tech store.

I tried it on my PC (also clean) and had the same issues.

That really only means the problem is not one detected by yours or the tech store software.
Unless they reformatted it, it could still be infected.

WARNING: Do NOT stick any device in your brothers computer; you may have an infected flash drive.

NOTE: Using your desktop as the place to do your projects IS a very bad idea.
Your virus protection software might be blocking it.

Tim S.

Oh I know. I am just going to DL codeblocks from the website like I normally would.

I dont normally store things on my desktop I have a CSC file folder for it. I just did it there since it was a test. I happen when I save them in my file folder as well.

Offline epaul

  • Multiple posting newcomer
  • *
  • Posts: 21
Re: permisson error and homepage resetting
« Reply #18 on: May 31, 2012, 01:37:30 am »
So I DLed and installed code blocks like normal on his comp (same OS)

Got the same exact problems including the homepage wipe.

And something else. When I went to close out code blocks something came up saying

"The default perspective of code blocks has changed, do you want to save this new layout?"

I xed out of the window cause I didnt know what to say...what does this mean?

But again all 3 computers in my house (Mine just got back from being cleaned but the other 2 I am SURE are clean) seem to have this same error with code blocks. Could there be a problem with the server I am using to download it?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: permisson error and homepage resetting
« Reply #19 on: May 31, 2012, 01:43:03 am »
"The default perspective of code blocks has changed, do you want to save this new layout?"

This happens every time I adjust a window in Code::Blocks.

It is very unlikely the sf server is the problem; but, it is possible.

Turn on FULL Compiler Logging to see if it is a bad code/compiler/project issue.
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F

Also, Post the code you are trying to compile.

Tim S.
« Last Edit: May 31, 2012, 01:45:46 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: permisson error and homepage resetting
« Reply #20 on: May 31, 2012, 01:55:23 am »
I am going with user error in the program till I rule it out.

So, post the code and full re-build of the project.

Note: The others on this site; might recall issues for the old 10.05 release; but, 2 years is too long for me to remember a bug like this.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline epaul

  • Multiple posting newcomer
  • *
  • Posts: 21
Re: permisson error and homepage resetting
« Reply #21 on: May 31, 2012, 01:56:29 am »
"The default perspective of code blocks has changed, do you want to save this new layout?"

This happens every time I adjust a window in Code::Blocks.

It is very unlikely the sf server is the problem; but, it is possible.

Turn on FULL Compiler Logging to see if it is a bad code/compiler/project issue.
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F

Also, Post the code you are trying to compile.

Tim S.

the code is

#include <iostream>

using namespace std;

int main()
{

cout<<"hello"<<endl;

return 0;
}

I turned on full compiler and I am not sure what to look for.

Here is what the build log came up with

mingw32-g++.exe  -o "C:\Users\Owner\Desktop\CSC code\test.exe" "C:\Users\Owner\Desktop\CSC code\test.o"  
c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: cannot open output file C:\Users\Owner\Desktop\CSC code\test.exe: Permission denied
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 5 seconds)
1 errors, 0 warnings

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: permisson error and homepage resetting
« Reply #22 on: May 31, 2012, 01:59:49 am »
Do a re-build NOT a build and past the build log from that.

Also, do it in a legal to use folder NOT the desktop!

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline epaul

  • Multiple posting newcomer
  • *
  • Posts: 21
Re: permisson error and homepage resetting
« Reply #23 on: May 31, 2012, 02:05:22 am »
Do a re-build NOT a build and past the build log from that.

Also, do it in a legal to use folder NOT the desktop!

Tim S.

To get a better view here is what I will do.

Using the same code I made a new testtwo.cpp

First build log (from a fresh new file):

mingw32-g++.exe    -c "C:\Users\Owner\Desktop\CSC code\testtwo.cpp" -o "C:\Users\Owner\Desktop\CSC code\testtwo.o"
mingw32-g++.exe  -o "C:\Users\Owner\Desktop\CSC code\testtwo.exe" "C:\Users\Owner\Desktop\CSC code\testtwo.o"  
Process terminated with status 0 (0 minutes, 9 seconds)
0 errors, 0 warnings

Ran program:

Didnt let me....said it had not been bulit yet do you want to build now?

Clicked yes

Build log from there:

mingw32-g++.exe    -c "C:\Users\Owner\Desktop\CSC code\testtwo.cpp" -o "C:\Users\Owner\Desktop\CSC code\testtwo.o"
mingw32-g++.exe  -o "C:\Users\Owner\Desktop\CSC code\testtwo.exe" "C:\Users\Owner\Desktop\CSC code\testtwo.o"  
c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: cannot open output file C:\Users\Owner\Desktop\CSC code\testtwo.exe: Permission denied
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings
 
And here is my code as before:

#include <iostream>

using namespace std;

int main()
{

cout<<"hello"<<endl;

return 0;
}

EDIT: Missed your last minute edit there....what do you mean legal folder? I have a CSC folder that is on my desktop that I store my code in...what do you mean by legal folder?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: permisson error and homepage resetting
« Reply #24 on: May 31, 2012, 02:07:02 am »
I have TOLD you twice DO NOT use the desktop to build the project.

A legal folder is one that is is safe to do programming in.

The C:\ IS NOT LEGAL.
The C:\program files is NOT legal.

Try something like "C:\Users\username\Documents\CB-Folder"

Tim S.
« Last Edit: May 31, 2012, 02:09:29 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline epaul

  • Multiple posting newcomer
  • *
  • Posts: 21
Re: permisson error and homepage resetting
« Reply #25 on: May 31, 2012, 02:09:06 am »

I have TOLD you twice DO NOT use the desktop to build the project.

Tim S.

Sorry I thought you ment do not story the files directly on the desktop. I am not trying to be difficult but I do not know what you mean by a legal folder. I usually store most of stuff in folders and I have those folders on a desktop.

Where else should I create a folder?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: permisson error and homepage resetting
« Reply #26 on: May 31, 2012, 02:14:37 am »
I am giving up helping you maybe one of the others will figure out what you are doing wrong.

1. Your anti-virus is the cause of all the issues
2. Some user error that I am not seeing
3. Windows security is the cause of the problem
4. The likely things you are really infected by a virus.
5. A mixture of the above.
6. something else.

READ ALL THE FAQs esp this one http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_My_build_fails_in_the_compile.2Flink.2Frun_step_with_a_Permission_denied_error.3F

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline epaul

  • Multiple posting newcomer
  • *
  • Posts: 21
Re: permisson error and homepage resetting
« Reply #27 on: May 31, 2012, 02:18:38 am »
I have TOLD you twice DO NOT use the desktop to build the project.

A legal folder is one that is is safe to do programming in.

The C:\ IS NOT LEGAL.
The C:\program files is NOT legal.

Try something like "C:\Users\username\Documents\CB-Folder"

Tim S.

So like this?

Using the same code

First build from a fresh file:

mingw32-g++.exe  -o C:\Users\Owner\Documents\CB-Folder\testtwo.exe C:\Users\Owner\Documents\CB-Folder\testtwo.o  
Process terminated with status 0 (0 minutes, 27 seconds)
0 errors, 0 warnings

Ran program (quickly after): Got a black command prompt with the "Process returned 0" message.

Secound build (did not alter any code):

mingw32-g++.exe    -c C:\Users\Owner\Documents\CB-Folder\testtwo.cpp -o C:\Users\Owner\Documents\CB-Folder\testtwo.o
mingw32-g++.exe  -o C:\Users\Owner\Documents\CB-Folder\testtwo.exe C:\Users\Owner\Documents\CB-Folder\testtwo.o  
c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: cannot open output file C:\Users\Owner\Documents\CB-Folder\testtwo.exe: Permission denied
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings
 
One thing of note...the .exe file seems to vanish shortly after being created as I cannot see it in the CB folder anymore.

Offline epaul

  • Multiple posting newcomer
  • *
  • Posts: 21
Re: permisson error and homepage resetting
« Reply #28 on: May 31, 2012, 02:20:44 am »
I am giving up helping you maybe one of the others will figure out what you are doing wrong.

1. Your anti-virus is the cause of all the issues
2. Some user error that I am not seeing
3. Windows security is the cause of the problem
4. The likely things you are really infected by a virus.
5. A mixture of the above.
6. something else.

READ ALL THE FAQs esp this one http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_My_build_fails_in_the_compile.2Flink.2Frun_step_with_a_Permission_denied_error.3F

Tim S.

I tried turnning off my AV and Firewall and that didnt work. I also tried this on all 3 comps...each one with the same error so I dont think its possible all 3 are infected considering I am pretty safe and my bro is insane about the compe security of his and our PC...to the point where I had to almost beg him to let me check if this code block problem happens on his labtop as well.

Thanks for your help though. I hope someone else can see what I cant.

Offline epaul

  • Multiple posting newcomer
  • *
  • Posts: 21
Re: permisson error and homepage resetting
« Reply #29 on: May 31, 2012, 03:10:20 am »
This has just gone into full blown bizzaro mode now.

On a whim I opened some of my programs that I know worked and were already created (didnt want to risk getting them messed up but if I cant get code blocks working I cant continue in the class any how)

So I opened up a simple additon program .cpp file in codeblocks

Built it: Smooth

Ran it: Smooth

my face:  :o

So I did this about 10 more times and everything was flawless.

So I decided to build another "hello" test program.

Back to having issues as before.

So im out of my mind right now and decide to be tricky.

I literally copy/past my addition program into a new file.

I Build it: Smooth

Run it: Smooth

Now I start to get creeped out and decide to go further. I change it from addition to subtraction

Smooth all the way through.

So I seem to have found a work around. I open old "non corrupt?" .cpp files. Copy their code. Past it in a new fresh file. Then alter the code as I need to for that program.

This is just waaay crazy...but at least for now I wont have to drop the class it seems if this workaround holds up for the next 4 weeks. But anyone else who may have some insight as to why this chaos is happening please chime in.