News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Running Project exe under Windows 7 CB SVN 9156

Started by stahta01, October 01, 2013, 05:58:23 AM

Previous topic - Next topic

stahta01

Question about Running Project exe under Windows 7 CB SVN 9156.

I have a workspace with two project in it.

I just noticed a weird thing and wondered it it is just the way CB works or a Bug.

1. I Activate Project 1 and re-build it.

2. I do "Build" -> "Run" and Project 1 runs.

3. I Activate Project 2.

4. I do "Build" -> "Run" and Project 1 runs. (Should Project 2 run at this time or not?)

Edit: It really does not matter to me; which is the right answer; but, I thought that was NOT what I thought would happen.

Tim S.


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

oBFusCATed

The active project should run. Are both projects an application projects or one is app and the other is lib, setup to run the app?
Have you looked at the build log to see if the correct project it being run?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

stahta01

#2
Quote from: oBFusCATed on October 01, 2013, 09:43:54 AM
The active project should run. Are both projects an application projects or one is app and the other is lib, setup to run the app?
Have you looked at the build log to see if the correct project it being run?


Found out the cause; still not sure if bug or not. I have decided it was User Error on my part.

The exe names was accidentally exactly the same.

I save-as the second project; and changed the source code names; but, forgot to change the output filenames.

Tim S.

Good run after fixing

-------------- Run: Release in TestProductionCode2 (compiler: GNU GCC Compiler)---------------

Checking for existence: F:\Unity-master\examples\bin\Release\TestProductionCode2.exe
Executing: "C:\GreenApps\CodeBlocks-NB/cb_console_runner.exe" "F:\Unity-master\examples\bin\Release\TestProductionCode2.exe"  (in F:\Unity-master\examples\.)
Process terminated with status 0 (0 minute(s), 2 second(s))


-------------- Run: Release in TestProductionCode (compiler: GNU GCC Compiler)---------------

Checking for existence: F:\Unity-master\examples\bin\Release\TestProductionCode.exe
Executing: "C:\GreenApps\CodeBlocks-NB/cb_console_runner.exe" "F:\Unity-master\examples\bin\Release\TestProductionCode.exe"  (in F:\Unity-master\examples\.)


Bad run after breaking it; I think it was clearly user error in this case; sorry for the false alarm.

-------------- Run: Release in TestProductionCode (compiler: GNU GCC Compiler)---------------

Checking for existence: F:\Unity-master\examples\bin\Release\TestProductionCode.exe
Executing: "C:\GreenApps\CodeBlocks-NB/cb_console_runner.exe" "F:\Unity-master\examples\bin\Release\TestProductionCode.exe"  (in F:\Unity-master\examples\.)
Process terminated with status -1073741510 (0 minute(s), 3 second(s))


-------------- Run: Release in TestProductionCode2 (compiler: GNU GCC Compiler)---------------

Checking for existence: F:\Unity-master\examples\bin\Release\TestProductionCode.exe
Executing: "C:\GreenApps\CodeBlocks-NB/cb_console_runner.exe" "F:\Unity-master\examples\bin\Release\TestProductionCode.exe"  (in F:\Unity-master\examples\.)


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