473,395 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 3034
> 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
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
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
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
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
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
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
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
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
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
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.