471,089 Members | 1,765 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,089 software developers and data experts.

Problem with GetCurrentDirectory()

Hi,

I have a little trouble with the function "Directory.GetCurrentDirectory()".

It seems that it keeps into memory the path of the Debug version of my
application.
It doesn't work correctly in Release version.

Did anyone already have such problem ?

thanks,
Maileen
Nov 21 '05 #1
3 1652
"Maileen" <no****@email.com> schrieb:
I have a little trouble with the function
"Directory.GetCurrentDirectory()".

It seems that it keeps into memory the path of the Debug version of my
application.
It doesn't work correctly in Release version.


Did you try to start your application outside the IDE?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #2
yes I tried it.
But i discovered from where is the problem.

When you use a Dialog box , it change the value of default directory...
problem was coming from this box.

Maileen

Herfried K. Wagner [MVP] wrote:
"Maileen" <no****@email.com> schrieb:
I have a little trouble with the function
"Directory.GetCurrentDirectory()".

It seems that it keeps into memory the path of the Debug version of my
application.
It doesn't work correctly in Release version.

Did you try to start your application outside the IDE?

Nov 21 '05 #3
When you use a Dialog box , it change the value of default directory...


Unless you set the RestoreDirectory property to True.

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Dan | last post: by
4 posts views Thread by Tim | last post: by
2 posts views Thread by poppy | last post: by
3 posts views Thread by ^MisterJingo^ | last post: by
1 post views Thread by =?Utf-8?B?S29lcnQ=?= | last post: by
2 posts views Thread by kengtung | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.