Code::Blocks Forums

User forums => Help => Topic started by: samtheeagle on May 12, 2005, 06:58:32 pm

Title: How to set "Host application" working directory?
Post by: samtheeagle on May 12, 2005, 06:58:32 pm
Hi,

I'm trying to debug a DLL, and so I've setup a host application in the projects execution parameters. When I start debugging (I'm using GDB 6.3) the exe I specified starts up ok, but it doesn't work properly as it's working directory is not being set. Basically the exe I startup can't find the files it needs, I'm guessing that it's because the process has inherited it's working directory from Codeblocks?

For your information the DLL I'm trying to debug is:

C:\Orbiter\Orbitersdk\samples\ShuttlePB\Debug\ShuttlePB.dll

And the host application exe is set to:

C:\Orbiter\orbiter.exe

Can anyone tell me how I can specify the working directory for the debug session?

Cheers in advance.
Title: How to set "Host application" working directory?
Post by: mandrav on May 12, 2005, 09:11:19 pm
The "working directory" target option in project properties doesn't work?

Yiannis.
Title: How to set "Host application" working directory?
Post by: Anonymous on May 12, 2005, 10:52:53 pm
I'm afraid not. For whatever reason it is disabled. It only seems to be enabled when the build target is GUI EXE or Console EXE. As I wish to build to a DLL I am unable to set the property :(

Any ideas?
Title: How to set "Host application" working directory?
Post by: mandrav on May 13, 2005, 12:11:00 am
Quote
Any ideas?

Yes. Submit a detailed bug-report and it might just make it into the next release (planned for this weekend).

Yiannis.
Title: How to set "Host application" working directory?
Post by: samtheeagle on May 13, 2005, 09:29:26 am
Cheers, I've raised a bug report...

http://sourceforge.net/tracker/index.php?func=detail&atid=707416&aid=1201182&group_id=126998

Thanks for your help! :)