473,508 Members | 2,152 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# .NET app. debug version works well, but Release version doesn't

Hi everyone,
I've a C# .NET application that works as expected when
built in the debug mode. However, it behaves strangely when built in the
Release mode.

Having the .pdb file included makes the applications work well. Can anyone
please suggest on this problem?

There are a number of try/catch blocks and trace/debug statements in the
application code. I was wondering if this has any bearing on the Release
build. Please suggest.

Thank you
Ravi
Dec 11 '05 #1
2 3041
> Hi everyone,
I've a C# .NET application that works as expected when
built in the debug mode. However, it behaves strangely when built in the
Release mode.
could you more explicit?
what, for example, do you call "behave strangely"?
Having the .pdb file included makes the applications work well. Can anyone
please suggest on this problem?

There are a number of try/catch blocks and trace/debug statements in the
application code. I was wondering if this has any bearing on the Release
build. Please suggest.

Thank you
Ravi

Dec 11 '05 #2
Hi Lloyd,
I've a code that uses Win32 API. I trace the events of various
windows and handle them to perform some actions. These events are available
through the Windows AccessibleEvents.

With the Release version, some of the events are being unnecessarily thrown
for some process with a negative ID. This does not occur with the Debug
version. This is causing the application to close by itself in the Release
version.

Any suggestions would be greatly appreciated.

Thanks
Ravi.
In the Release mode,

"Lloyd Dupont" wrote:
Hi everyone,
I've a C# .NET application that works as expected when
built in the debug mode. However, it behaves strangely when built in the
Release mode.

could you more explicit?
what, for example, do you call "behave strangely"?
Having the .pdb file included makes the applications work well. Can anyone
please suggest on this problem?

There are a number of try/catch blocks and trace/debug statements in the
application code. I was wondering if this has any bearing on the Release
build. Please suggest.

Thank you
Ravi


Dec 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3273
by: Raphael Zulliger | last post by:
Hi I have to check wheter a .py script is run within the debug or the release version of an embedded python interpreter (in short, wheter python24_d.dll or python24.dll is in use). long...
6
3833
by: ss | last post by:
Hi I built an exe in console debug mode & Release mode . The console debug mode -exe works fine ...but the release mode EXE starts well but fails mid way . The exe is being started as a...
1
1486
by: Christian Wallukat | last post by:
Hi NG, I have a problem with a component written in VC6.0 SP5. The componnet shares Data over pointer: (PVOID)pData = (PVOID)some data... The debug version works fine... But I have...
2
3972
by: | last post by:
Hi, I'm experiencing a bizar problem with MS VC++, and just can't figure out what's going on. I Build a solution that compiles pretty well, it works good when I launch it in the Visual C++ Editor...
5
5336
by: David++ | last post by:
Hi there, I have built a DLL in Visual C++ 6. When I build the DLL it builds fine for the debug version of the DLL (and this DLL works fine), however, I seem unable to build a Release version of...
10
4872
by: Scott | last post by:
I have a simple asp.net app which works fine in debug mode, but crashes on the following line when I run it on the production server: Dim dt As DataTable I have tried the following variations...
2
2359
by: Epetruk | last post by:
Hello, I have a problem where an application I am working on throws an OutOfMemoryException when I run it in Release mode, whereas it doesn't do this when I am running in Debug. The...
5
3385
by: Jonas Hallgren | last post by:
Hello, Is there any general tips on how to solve this problem: my Debug version runs fine but when I do a Release version I get error messages!? I'm hoping it is a simple option somewhere or...
3
3362
by: =?Utf-8?B?bG10dGFn?= | last post by:
We have developed a number of different applications (ASP.NET web site, Windows services, DLLs, Windows forms, etc.) in C# 2.0. We have developed and unit tested all these applications/components...
0
7225
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7326
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7385
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7046
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5629
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5053
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3182
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1558
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.