PC Review


Reply
Thread Tools Rate Thread

debug and release version

 
 
=?Utf-8?B?amFtZXMgb3U=?=
Guest
Posts: n/a
 
      19th Jan 2004
hi, everybody,

Is there any difference between debug and release version of executable file?
If have, what is the difference between them?

thanks
 
Reply With Quote
 
 
 
 
Guest
Posts: n/a
 
      19th Jan 2004
Release has optimizations ON, inlining etc.


"james ou" <(E-Mail Removed)> wrote in message
news:4CDB370C-FBB1-4543-A0A5-(E-Mail Removed)...
> hi, everybody,
>
> Is there any difference between debug and release version of executable

file?
> If have, what is the difference between them?
>
> thanks



 
Reply With Quote
 
=?Utf-8?B?amFtZXMgb3U=?=
Guest
Posts: n/a
 
      20th Jan 2004
thanks for your reply.

Is it possible that some problem will happen in release version, but will not happen in debug version?
Last week I saw a situation, in debug version the code run result as follews :

startTick = DateTime.Now.Ticks;
while (((DateTime.Now.Ticks - startTick) / 10000) < 100)
{
// do some code
}
Console.WriteLine((DateTime.Now.Ticks - startTick));

the result is aboult 1000000

but in the release version, the result is aboult 200000000.
The same code section exist in two functions in my ap, but only one function happen this situation.
My ap have some unsafe code, it must call some C functions. Is there any reason to explain this situaton?

But today, first I write a small program to test, this situaton dose not happen. Then I try my ap again, this situaton also dose not happen. Dose it happen by chance?

thanks again.

ps: I will take about 6 days new year vacation from tomorrow.
 
Reply With Quote
 
Kumar
Guest
Posts: n/a
 
      20th Jan 2004
debug and release versions differ only in the size of the executable code
they generate in the exe file.. Debug version is bit bigger than release
version becoz it contains the extra information needed to debug your
application like.. break point information.. but i am sure they do not cause
any difference in the application functionality..its just the extra bit of
information to help the coder to debug his application..


"james ou" <(E-Mail Removed)> wrote in message
news:406B307E-3095-4976-AF98-(E-Mail Removed)...
> thanks for your reply.
>
> Is it possible that some problem will happen in release version, but will

not happen in debug version?
> Last week I saw a situation, in debug version the code run result as

follews :
>
> startTick = DateTime.Now.Ticks;
> while (((DateTime.Now.Ticks - startTick) / 10000) < 100)
> {
> // do some code
> }
> Console.WriteLine((DateTime.Now.Ticks - startTick));
>
> the result is aboult 1000000
>
> but in the release version, the result is aboult 200000000.
> The same code section exist in two functions in my ap, but only one

function happen this situation.
> My ap have some unsafe code, it must call some C functions. Is there any

reason to explain this situaton?
>
> But today, first I write a small program to test, this situaton dose not

happen. Then I try my ap again, this situaton also dose not happen. Dose it
happen by chance?
>
> thanks again.
>
> ps: I will take about 6 days new year vacation from tomorrow.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
StackFrame is inconsistent in Debug version and Release version HCF_15 Microsoft C# .NET 2 15th May 2006 03:27 AM
C# .NET app. debug version works well, but Release version doesn't =?Utf-8?B?UmF2aQ==?= Microsoft Dot NET 2 12th Dec 2005 12:56 PM
Debug / Release Version Max Microsoft ASP .NET 1 7th Oct 2005 10:36 AM
How do I choose debug/release version of C# DLL? Peter Steele Microsoft C# .NET 3 17th Feb 2005 09:00 PM
Debug vs Release version genc ymeri Microsoft C# .NET 2 24th Mar 2004 03:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:38 PM.