Solved

Diffrence between debug & release versions

Posted on 2009-07-04
5
249 Views
Last Modified: 2013-12-17
Hello,

I am new to C#.
I wrote a C# application, compiled it as Debug version (I have a dll inside inside bin folder) and gave it to my customer.
Should I compile it as Release version?
What is a diffrence between Debug & Release version? When should I use each of these compilations?

THANKS
Margarit

Debug-Release.JPG
0
Comment
Question by:margarit
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 250 total points
ID: 24777644
You should always distribute the release versions.
Typically a debug build contains extra information/code to assist in debugging - usually means bigger and slower.
0
 
LVL 2

Assisted Solution

by:Erbureth
Erbureth earned 250 total points
ID: 24777649
When you compile a program in Debug mode, usually no optimizations are made, and, what is more important, symbolic names of functions and variables are exported too, so you can debug your program easily. On the other hand, Release mode compilation makes some speed optimizations and no debug symbols are included, so the resulting binary is smaller and faster. So always remember to switch to Release mode before compiling your program for distribution :)
0
 

Author Comment

by:margarit
ID: 24778829
Thanks for the useful comments. One more question:
When I give the debug version to customer I give him EXE + dll.
Does executable from release version contains dll inside of it, or I should use EXE+dll too?
THANKS
0
 
LVL 44

Expert Comment

by:AndyAinscow
ID: 24778975
You still need both.
You build a release version of the exe AND a release version of the dll
0
 

Author Closing Comment

by:margarit
ID: 31599803
THANKS
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

736 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question