473,320 Members | 1,867 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,320 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.
Nov 21 '05 #1
6 3134
Do you get an error message?

Gabriel Lozano-Morán
Nov 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/>
Nov 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.

Nov 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
Nov 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.

Nov 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.

Nov 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: 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...
6
by: orekin | last post by:
Hi There I have been trying to come to grips with Application.Run(), Application.Exit() and the Message Pump and I would really appreciate some feedback on the following questions .. There are...
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...
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
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.