Setting target application default directory

Brian DonahueBrian Donahue Posts: 6,590 Bronze 1
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" <junk@junk.com> wrote in message news:r%231vS0CNDHA.1176@server53...
> 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" <junk@junk.com> wrote in message news:6qXT2bCNDHA.1176@server53...
> > 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.