Author Topic: How to set "Host application" working directory?  (Read 4500 times)

samtheeagle

  • Guest
How to set "Host application" working directory?
« 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.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4291
    • Code::Blocks IDE
How to set "Host application" working directory?
« Reply #1 on: May 12, 2005, 09:11:19 pm »
The "working directory" target option in project properties doesn't work?

Yiannis.
Be patient!
This bug will be fixed soon...

Anonymous

  • Guest
How to set "Host application" working directory?
« Reply #2 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?

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4291
    • Code::Blocks IDE
How to set "Host application" working directory?
« Reply #3 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.
Be patient!
This bug will be fixed soon...

samtheeagle

  • Guest
How to set "Host application" working directory?
« Reply #4 on: May 13, 2005, 09:29:26 am »