473,569 Members | 2,422 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 3045
> 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 AccessibleEvent s.

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
3281
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 version: I'm using ctypes to load my own dll. There exists 2 version of this dll - a debug and a release version (where one is linked against debug C...
6
3839
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 service. So I need the Release mode EXE. I've checked the dlls being used . they are working fine for other services.
1
1491
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 compiled the release version, and now it does not work ...
2
3974
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 (F5 or shift+ F5) but the .exe file generated in a release mode doesn't work properly ! Anye clue ??
5
5347
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 the DLL. If I do a 'Batch Build' and select both Debug and Relase versions for building it will build the debug version but throws up errors for...
10
4879
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 which produce the same result: Dim dt As System.Data.DataTable Dim dt As DataTable = New DataTable The error message reads: ...
2
2363
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 application is developed using C++/Managed C++ and built using VS 2003 under .NET framework 1.1. In Debug, it uses of up to 600Mb of memory, whereas in...
5
3390
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 a flag I can set... Regards, Jonas
3
3370
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 using Debug mode. Now we are ready to compile everything for release to production. However, we don’t know whether we should compile all the...
0
7703
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8132
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7982
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6286
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5514
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5222
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3656
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1226
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
944
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.