|
My app exists just fine, and the Windows Explorer message says, when trying to delete the file, that the program using my executable is Visual Studio 2010.
Any ideas?
|
|
|
|
|
Its also possible that the debugging causes this problem, but I don't think so.
Does it happen every time you starts and exits your executable or only from time to time?
(or does it only happen if you start in debug (F5) mode?)
Greetings
Covean
|
|
|
|
|
When I start my app for the first time, it doesn't happen. After I've finished debugging, it happens all following times.
It happens in both the Debug and Release folder.
|
|
|
|
|
Are you really sure your application exits flawless? (please take a look in the task manager and make sure
that your exe is not running.)
If your application isn't running, then I really think your debugger causes this problem
and I don't know how to solve this (maybe reinstall VS2010).
Greetings
Covean
|
|
|
|
|
The application isn't displayed when it has exited.
I'll try reinstalling VS2010.
|
|
|
|
|
It could be that the Visual Studio Hosting process is causing this issue. To check, you can disable this by selecting Properties > Debug and uncheck the Enable the Visual Studio hosting process checkbox.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
That seems to work. What does the Visual Studio Hosting process do?
|
|
|
|
|
It's designed to do this[^].
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Isn't there some kind of way I can configure the hosting process to not keep using my exe when it's closed?
|
|
|
|
|
Nothing worthwhile. I always disable it.
|
|
|
|
|
You do? How big is the performance loss?
|
|
|
|
|
|
hi all...i have to create directory in win7 and copy file in this directory programmatically in using c#..my application properly work in winXP...but when i run my application in win7..it does not create directory as well as copy file...tell me what i do for win7....it is a C# windows desktop application...
regards
tanzeel
|
|
|
|
|
In win7 you need to give admin access (or you need to run your windows application as an administrator) to your application to allow it to create directory.
Hope this will help!
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
|
there is no error occur...application execute successfully but did not create directory in win7
|
|
|
|
|
i login from administrator user but did not create directory in win7
|
|
|
|
|
Can you show us your code?
|
|
|
|
|
Logging in is not enough to be an administrator. You should run your program as administrator. Also if your program does not give your an error message, it's probably because you aren't checking for any errors. (boo! boo!).
If it fails to create a directory, you should not be creating your directory there in the first place (Places like the root of c:, program files, windows, etc... are taboo.
|
|
|
|
|
AFAIK the situation is the same on Vista and Windows 7, and will continue to be so on newer versions of Windows:
- a lot of directories cannot be modified by a regular user; those include the top-level directory of your system partition (usually C: ) and all important directories such as /Windows, /Windows/system32, and /Program Files.
- as Michel said, you need an administrator account AND an app "running as administrator" so get over those restrictions.
What should work though is access to a number of special folders intended to hold your app's settings and local data, and other things like that. Have a look at Environment.GetFolderPath() and Environment.SpecialFolder
Within such directories, one usually creates a hierarchy of folders, so a typical sequence would be:
string fileSpec=Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)+
@"\companyName\appName\logfile.txt";
string folder=Path.GetDirectoryName(fileSpec);
Directory.CreateDirectory(folder);
StreamWriter writer=File.CreateText(fileSpec);
...
|
|
|
|
|
|
Parallel.For is part of .NET 4.0, that uses a CLR version different from .NET 3.5.
So you can't use Parallel.For or any 4.0 new feature in a 3.5 or older project.
EDIT: Please, do not delete your message after someone answered you.
|
|
|
|
|
Hi,
I need a way to check which URL's are available on a specific name server, so which urls are registered there. How can I do this?
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
name servers don't contain urls they contain names which can be expanded to fqdn's. You access these names through your favorite dns client (nslookup) for instance, and issue a list command. The administrator of the dns server will probably have disallowed this, because it's a cheap trick used by amateur hackers to discover addresses on networks. If you explain to us what your final purpose is, and persuade us that your intentions are legal, we MIGHT explain some more.
|
|
|
|
|
Matter has been dealt with privately. Please ignore the question.
|
|
|
|