What is the difference between debug mode and release mode?
Can anybody help me with the difference between release mode and debug mode!!
I have no idea of what they are and their significance.
Can anybody help me with the difference between release mode and debug mode!!
I have no idea of what they are and their significance.
Hope this helps,
-Tom Meschter
Software Dev, Visual C# IDE
app_directory = Application.ExecutablePath.Substring(0,myindex+6);
contacts_directory = app_directory + "Contacts\\";
Now, I then use string variable contacts_directory in the btnOpen_Click( ) event to specify the Contacts subdirectory of the application directory:
fileDialog.InitialDirectory = contacts_directory;
So, it's simply a matter of:
fileDialog.InitialDirectory = contacts_directory;
Now, never mind the fact that .InitialDirectory doesn't work right except for the first time btnOpen_Click( ) is used after the application starts. That's a separate issue that I know many, many people have complained about.
It sounds like what I need to do before building the Release is change "myindex" above to:
int myindex = Application.ExecutablePath.IndexOf("Release");
substituting "Release" for "Debug". It seems like if folders Debug and Release are on the same level, and each contains a Contacts subdirectory, that this substitution would suffice. But it does not. I get the following runtime error in debug mode:
<img src="http://www.geocities.com/kyrathaba/inline_images/app_error.JPG">
What is this "C:\DoContacts" directory?
Also, I have a question for the release.
After I release my project, the executable file is only run with the machine that I compile it. If I take that file and run with a different PC, it gives me an error message as below.
"This Application has failed to start because the application configuration is incorrect. Reinstalling the application may fix the problem. "
you can either create a setup and deployment project in the full VS.NET (non express) which will download and install the .NET Framework automatically, and install your application.
download .NET Framework 2.0: