Author Topic: Executing the built application (run button)  (Read 4393 times)

Offline LostBalloon

  • Single posting newcomer
  • *
  • Posts: 3
Executing the built application (run button)
« on: November 21, 2009, 06:24:43 am »
Hi,

I just want to start off by saying that my program does compile and execute correctly.
I am using windows 7 and Visual c++ 2008 (not the express).

No matter what type of application I create, it will build, it will run ok from the outside, but not from within the IDE, in both the debug and release profiles.
i tried OpenGL app, console app. Neither starts from the IDE.

The reason I am using this IDE instead of Visual studio is for easy cross-platform portability since im coding a cross-platform application. Not being able to run my test consoles from within the IDE slows me down greatly.

thanks in advance for the help,

Offline blueshake

  • Regular
  • ***
  • Posts: 458
Re: Executing the built application (run button)
« Reply #1 on: November 21, 2009, 07:01:44 am »
more information should be provided.like whichversion of codeblock,what is the failure message.
Keep low and hear the sadness of little dog.
I fall in love with a girl,but I don't dare to tell her.What should I do?

Offline LostBalloon

  • Single posting newcomer
  • *
  • Posts: 3
Re: Executing the built application (run button)
« Reply #2 on: November 21, 2009, 09:30:25 am »
the latest. 8.02
as for error messages, there are none, it just doesnt launch the program after building it.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7789
    • My Best Post
Re: Executing the built application (run button)
« Reply #3 on: November 21, 2009, 04:39:42 pm »
the latest. 8.02
as for error messages, there are none, it just doesnt launch the program after building it.

Are you running Code::Blocks as Admin?
If not, do so. Or turn off the Windows 7 Security system.

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

Offline LostBalloon

  • Single posting newcomer
  • *
  • Posts: 3
Re: Executing the built application (run button)
« Reply #4 on: November 21, 2009, 08:19:42 pm »
Thanks,

that actually worked.
I had already tried running it as administrator with no success.

Removing the "system protection" (exact terms in windows 7, from the computer properties) made it work.
and for your personal information i was able to re-enable the system protection without losing the ability to run.

i did the following (aleays runing Codek::Blocks as admin):
1- closed code::blocks
2- disabled the system protection on drive C
3- started the IDE, ran an application (worked)
4- re-enabled the system protection on drive C
5- Closed the IDE and opened a new instance to make sure
6- compiled and ran a totally new project (worked)

the previously mentionned should work for anyone running on windows 7 that wants to keep having restore points.