473,406 Members | 2,745 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,406 software developers and data experts.

My application works fine in debug mode but does not work in releasemode.

I have an application that works correctly in debug mode but it does
not work in release.

I am not using anything of the class system.diagnostics.
I tried to disable the optimization code, but this did not work

please I need a solution quickly!!.

Thanks.
Jul 21 '05 #1
6 1728
Do you get an error message?

Gabriel Lozano-Morán
Jul 21 '05 #2
"Ariel" <ar************@yahoo.com.ar> schrieb:
I have an application that works correctly in debug mode but it does
not work in release.


What does not work? What error message/exception is shown?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Jul 21 '05 #3
The first step would be to know what the exact error message is ? Do you
have this or does it just hangs without any feedback ?

Patrice

--

"Ariel" <ar************@yahoo.com.ar> a écrit dans le message de
news:%2*****************@TK2MSFTNGP12.phx.gbl...
I have an application that works correctly in debug mode but it does
not work in release.

I am not using anything of the class system.diagnostics.
I tried to disable the optimization code, but this did not work

please I need a solution quickly!!.

Thanks.

Jul 21 '05 #4
Ariel,

How did you start your application.

(A simple way is to click on the exe in the application debug release
folder using explorer)

(Assuming that you build it once in release mode)

Cor
Jul 21 '05 #5
If you are in dire straits, the quickest way to get a response is more
information. Types of information that helps:

1. Code samples
2. Error messages (exactly as shown)
3. Specific information about the class you have written (what is it doing)

Without this, you are just throwing out a question hoping someone has
encountered a similar problem. But, his solution might not be yours without
specific information.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
"Ariel" wrote:
I have an application that works correctly in debug mode but it does
not work in release.

I am not using anything of the class system.diagnostics.
I tried to disable the optimization code, but this did not work

please I need a solution quickly!!.

Thanks.

Jul 21 '05 #6
Wow... you really hit a lot of forums. I'm assuming that you are facing a
serious challenge.

The most common cause I've seen for this is because you do not have all of
your compilation happening in a single solution file, and your references
are pointing to fixed locations on the hard drive.

In other words, I have seen this in the following scenario. If this
scenario does not apply to you, then my message will not be useful.
a) your application has more than one assembly.
b) you have not included the compilation of both assemblies in a single
solution file. You are compiling multiple solutions
c) The references in the dependent application are referring to the
location of the compiled dlls. They are not project references.

In this case, I have seen folks create two project files: one for debug and
the other for release modes, since the debug and release dlls for the
dependent app are in different directories. This is error prone and often
fails.

The best answer is to create an altogether new solution file. Add in all of
your project files. Drop all of the references and recreate them as project
references. Now, compiling as debug or release will work far better.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Ariel" <ar************@yahoo.com.ar> wrote in message
news:%2*****************@TK2MSFTNGP12.phx.gbl...
I have an application that works correctly in debug mode but it does not
work in release.

I am not using anything of the class system.diagnostics.
I tried to disable the optimization code, but this did not work

please I need a solution quickly!!.

Thanks.

Jul 21 '05 #7

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

Similar topics

0
by: okaminer | last post by:
Hi I am currently writing my first ASP.NET application I am trying to get my User Identity in the web page using the following line: CStr(context.User.Identity.Name) The problem is that when I...
6
by: Frank Wilson | last post by:
Tom, It sounds to me like ASP, not ASP.NET is handling the request for WebForm1.aspx. This is most likely an IIS config issue that may have been caused by order of installation or...
4
by: tommy | last post by:
hello everbody, i write a little asp-application with forms-authentication. i copy my aspx-files with web.config to my webspace and i get the error above... i tried to set the...
3
by: abcd | last post by:
I get following error. I have 2 simple text boxes and requiresValidator control attached to them. When run on development machine is works when deployed on production server I get following errors....
6
by: Luis Esteban Valencia | last post by:
Hi, I want in debug mode debug=true. In release (production), no reason debug to be true but the questions are: 1. Does it slow the application (holding debug=true) 2. If yes, how can I solve...
13
by: Lee Newson | last post by:
Hi, I have just written my first application using VB.NET. The app works fine when i am running it within .NET for debugging purposes, however when i try to run the app from the .exe file that...
6
by: Ariel | last post by:
I have an application that works correctly in debug mode but it does not work in release. I am not using anything of the class system.diagnostics. I tried to disable the optimization code, but...
38
by: vinjvinj | last post by:
I haven't used an IDE in a long time but gave wing ide a try because I wanted the same development platform on Linux and Windows. I'm currently using Ultraedit and it works fine but needed...
4
by: Stephan Rose | last post by:
In the following section of code: if(addr == address) { this.cache.Add(entry); return entry.Name; } Looks pretty easy and simple. Problem though is, the return entry.Name line is only...
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
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...
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
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...

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.