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

Offline epaul

  • Multiple posting newcomer
  • *
  • Posts: 21
permisson error and homepage resetting
« on: May 31, 2012, 12:07:53 am »
So as of late I have had very strange issues with code blocks.

I am taking a C++ class at a college, but I have been using code blocks months before then I have it installed on my labtop.

However starting 2 days ago I have been getting odd errors.

Here is how it usually goes:

1) I create a simple program to print out "Hello"

2) I go to build the program, everything works ok

3) I go to run the program and...nothing. Just a blank comand prompt screen. Sometimes it will give me a "Process returned 0" statment, but usually its just a black blank screen.

4) I go to rebuild the program CHANGING NOTHING. And it wont build. It gives an error like this:

ld.exe||cannot open output file C:\Users\Owner\Desktop\test.exe Permission denied|
||=== Build finished: 1 errors, 0 warnings ===|

Now here is the REALLY strange thing...at the end of all this...it wipes my homepage and resets it back to blank. And I have to restart my computer in order to reset it back. Sometimes I even have to go into the task manager and manually turn off the program..though not always.

At first I thought I might have a virus so I took it into a comp tech store to have it cleaned.

It came back clean as a whistle.

Tried to run code blocks and got the same exact thing as before. Blank command prompt, cant build due to permisson error, homepage wipe.

So I uninstalled and reinstalled code blocks. Didnt help

I ran code blocks as administrator. Didnt help

I turned off my firewall. Didnt help

So I said "Let me try it on my PC"

I DLed and installed code blocks on my PC.

I got the same exact problems (including my homepage being reset).

The same problems happen on my labtop and PC...and this all started only 2 days ago.

I have worked with and created quite a few programs with code blocks before this with no issues...but all the sudden this permissons error has stoped me cold. What scares me is that I have to have code blocks for my class (afterall it is the program he uses and requires us to use as well), and plus...well...I have been using it for a while and I like it I would really rather not change to a different program..in fact i wouldnt even know where to being looking.

So anyone have any ideas how to get around this. Like I said I tried uninstalling/turning off firewall/running as admin/even switching computers  but nothing has worked.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: permisson error and homepage resetting
« Reply #1 on: May 31, 2012, 12:23:34 am »
Where DID YOU get the copy of Code::Blocks?
Where DID YOU get the compiler you are using?

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 #2 on: May 31, 2012, 12:26:38 am »
Where DID YOU get the copy of Code::Blocks?
Where DID YOU get the compiler you are using?

Tim S.

From the codeblocks website.

http://www.codeblocks.org/downloads/26

I DLed the mingw version.

And I am using Windows 7 Home premium
« Last Edit: May 31, 2012, 12:29:06 am by epaul »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: permisson error and homepage resetting
« Reply #3 on: May 31, 2012, 12:32:09 am »

Which source-forge server did you use?
Or if you do NOT know that, what area of the world/country are you in?

Tim S.


« Last Edit: May 31, 2012, 12:34:01 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 #4 on: May 31, 2012, 12:35:58 am »

Which source-forge server did you use?
Or if you do NOT know that, what area of the world/country are you in?

Tim S.




Uhh...I clicked the source-forge link (Not the BerilOS, thought I tried that one and it still didnt work) not sure how to check which server it is though.

I am in the US, Illinois

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: permisson error and homepage resetting
« Reply #5 on: May 31, 2012, 12:37:53 am »

Which source-forge server did you use?
Or if you do NOT know that, what area of the world/country are you in?

Tim S.




Uhh...I clicked the source-forge link (Not the BerilOS, thought I tried that one and it still didnt work) not sure how to check which server it is though.

I am in the US, Illinois

There is over a dozen source-forge servers; that is why I asked.

My download (will be about 15 minutes to finish) is from softlayer server.
The site source-forge is supposed to pick the closest; unless you pick otherwise.

Here the direct download link saying for me; http://downloads.sourceforge.net/project/codeblocks.berlios/codeblocks-10.05mingw-setup.exe?r=&ts=1338417031&use_mirror=softlayer

Tim S.
« Last Edit: May 31, 2012, 12:40:54 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: 7582
    • My Best Post
Re: permisson error and homepage resetting
« Reply #6 on: May 31, 2012, 12:45:55 am »
What browser are you having the home page change inside of?
What is the home page being changed to?

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 #7 on: May 31, 2012, 12:53:07 am »
What browser are you having the home page change inside of?
What is the home page being changed to?

Tim S.

IE, though I havent checked firefox to see if its affected to.

The homepage is being changed to blank.

As in I click open IE and it go to a blank white page.

If I go into tools and try to reset my homepage and click apply then ok.....it simply does nothing changes back to blank as soon as I close the Internet Tool window.

However, when I restart my computer, my homepage is back to normal.

When I click the source-forge link this is the url I get

http://sourceforge.net/projects/codeblocks/files/Binaries/10.05/Windows/codeblocks-10.05mingw-setup.exe/download

When I open the direct link I get

http://sourceforge.net/projects/codeblocks/files/Binaries/10.05/Windows/codeblocks-10.05mingw-setup.exe/download?use_mirror=softlayer


Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: permisson error and homepage resetting
« Reply #8 on: May 31, 2012, 01:04:48 am »
Verify the path being used by Code::Block toolchain.

"Settings" -> "Compiler and Debugger"

State name of the select compiler:

Click on Tab "Tool chain executable"
State the path in this box "Compiler's Installation Directory":

Edit: I just installed the same version of Code::Blocks with MinGW and it worked OK.
NOTE: It did default to using the Wrong Compiler; it used a different version then the MinGW I downloaded with CB.
After, I changed to the downloaded MinGW GCC; It compiled Hello World without error.
Now going to launch IE.

The IE Homepage was not blank.

Tim S.
« Last Edit: May 31, 2012, 01:09:18 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 #9 on: May 31, 2012, 01:09:48 am »
Verify the path being used by Code::Block toolchain.

"Settings" -> "Compiler and Debugger"

State name of the select compiler:

Click on Tab "Tool chain executable"
State the path in this box "Compiler's Installation Directory":

Edit: I just installed the same version of Code::Blocks with MinGW and it worked OK.
NOTE: It did default to using the Wrong Compiler; it used a different version then the MinGW I downloaded with CB.
After, I changed to the downloaded MinGW GCC; It compiled Hello World without error.
Now going to launch IE.

Tim S.

GNU GCC Compiler

C:\Program Files (x86)\CodeBlocks\MinGW

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: permisson error and homepage resetting
« Reply #10 on: May 31, 2012, 01:12:40 am »
I suggest doing Windows Update to find out if you are missing a patch.
I also suggest verify all Adobe products are patched.
(Adobe has had so much problems it is worth patching)

I would also suggest making sure your virus protection is up to date.

Then, I would run an adware software.

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 #11 on: May 31, 2012, 01:13:45 am »
Here is also something odd.

I went to do another test program and everything happened as stated.

However this time there was a test.exe file

I went to properties and went to the securties tab and it said to change security settings I need to be the admin. But as I said running as admin didnt work

However before I could do anything or click on anything in the securities tab to change it....the .exe file just vanished. The icon literally just went away. It didnt go to recycle and its no in the task manager it just vanished, but the .o and .cpp file were still there.

Google chrome homepage did NOT reset but IE did.

Offline epaul

  • Multiple posting newcomer
  • *
  • Posts: 21
Re: permisson error and homepage resetting
« Reply #12 on: May 31, 2012, 01:15:21 am »
I suggest doing Windows Update to find out if you are missing a patch.
I also suggest verify all Adobe products are patched.
(Adobe has had so much problems it is worth patching)

I would also suggest making sure your virus protection is up to date.

Then, I would run an adware software.

Tim S.

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)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: permisson error and homepage resetting
« Reply #13 on: May 31, 2012, 01:16:09 am »
Your computer sounds like it might be infected; but, I really do NOT think Code::Blocks is the cause.

Note: I am running Windows 7 32 bit with IE9; and I did what you did with no issues.

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 #14 on: May 31, 2012, 01:20:27 am »
Your computer sounds like it might be infected; but, I really do NOT think Code::Blocks is the cause.

Note: I am running Windows 7 32 bit with IE9; and I did what you did with no issues.

Tim S.

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.

I will try it on my bro's comp once he comes but so we will see then.

But in the mean time, is there a place I can go to patch my adobe stuff. I went to their website but not sure on what to click heh.