By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,572 Members | 1,516 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,572 IT Pros & Developers. It's quick & easy.

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

P: n/a
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.
Nov 21 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Do you get an error message?

Gabriel Lozano-Morán
Nov 21 '05 #2

P: n/a
"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/>
Nov 21 '05 #3

P: n/a
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.

Nov 21 '05 #4

P: n/a
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
Nov 21 '05 #5

P: n/a
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.

Nov 21 '05 #6

P: n/a
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.

Nov 21 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.