Setting target application default directory

Brian DonahueBrian Donahue Posts: 6,590 New member
Hi Sean,

ANTS Profiler shouldn't change the working directory that your
application is using, although we've heard of this problem before, but
couldn't duplicate the problem here at Red Gate.

A quick fix may be to specify the current directory in your application
by using Application.StartupPath in your source.

I hope this helps.

Brian Donahue
Red Gate Technical Support

"Sean" <[email protected]> wrote in message news:r%[email protected]
> I noticed that most of the time it uses
> the app's default directory (by looking at the target executable's path?)
> but sometimes it uses the ANTS Profile as the CWD.
>
> Sean
>
> "Sean" <[email protected]> wrote in message news:[email protected]
> > Hi,
> >
> > I'm profiling a .NET Winforms application.
> > Is it possible to set its current working directory?
> >
> > Thanks,
> > Sean
> >
> >
>
>

Comments

Sign In or Register to comment.