User forums > Help

How to run a project program as lower process priority?

<< < (2/2)

Jenna:

--- Quote from: MortenMacFly on May 28, 2009, 03:40:49 pm ---
--- Quote from: jens on May 28, 2009, 03:10:45 pm ---EDIT:
crossed with MortenMacFly's post

--- End quote ---
Hehe...

Notice that you need to replace the "TARGET" string with the targets' name. So a for a target named "debug" it should look like this then:
"$(DEBUG_OUTPUT_FILE)"


--- End quote ---
Works correctly here for any targets (except virtual targets of course).

photon3108:
Thanks everyone.

That's great. It works. When the program is running (1 hr), I can write some codes in other projects and it doesn't block cpu.

But I have a new problem. When I used "Tool" like everybody said, the program didn't search necessary dlls in other projects.
Actually I don't understand how does code::blocks search dlls which the project program links. I just set "project build options" -->
"search directories" --> "linker" where dlls is and don't need change "execution working dir" to the dll's directory. It works well at
svn 5535.

I tried to set executable: PATH=%PATH%;c:\projects_cb\abc\dll & cmd /c start /belownormal in "Tool". It didn't work. How can
I solve it?

MortenMacFly:

--- Quote from: photon3108 on May 29, 2009, 10:27:49 am ---I tried to set executable: PATH=%PATH%;c:\projects_cb\abc\dll & cmd /c start /belownormal in "Tool". It didn't work. How can
I solve it?

--- End quote ---
Setup the path environment variable "PATH" accordingly using the evvars plugin and a specific setup for your project..

photon3108:
I clone the default and add PATH(key)/c:\dlls(value) in environment variables.
And then I select the new one which cloned from the default in project --> EnvVar Option.

When I use "Tool", It doesn't still find the dll.

Navigation

[0] Message Index

[*] Previous page

Go to full version