Home All Groups Group Topic Archive Search About

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

Author
3 Jun 2005 2:57 PM
Ariel
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.

Author
3 Jun 2005 3:04 PM
Gabriel Lozano-Morán
Do you get an error message?

Gabriel Lozano-Morán
Author
3 Jun 2005 3:16 PM
Herfried K. Wagner [MVP]
"Ariel" <ariellarrab***@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/>
Author
3 Jun 2005 3:18 PM
Patrice
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

--

Show quote
"Ariel" <ariellarrab***@yahoo.com.ar> a écrit dans le message de
news:%23%235sYxEaFHA.228@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.
Author
3 Jun 2005 3:23 PM
Cor Ligthert
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
Author
3 Jun 2005 3:27 PM
Cowboy (Gregory A. Beamer) - MVP
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!
***************************


Show quote
"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.
>
Author
4 Jun 2005 6:53 PM
Nick Malik [Microsoft]
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.
--
Show quote
"Ariel" <ariellarrab***@yahoo.com.ar> wrote in message
news:%23%235sYxEaFHA.228@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.

AddThis Social Bookmark Button