473,385 Members | 1,396 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,385 software developers and data experts.

unhandled exception error during release, but not development

What factor would allow an unhandled exception to occur in a compiled
project, versus no error for the same action during development? In other
words, I have a project that, in development when I test it, runs no
problem. When I compile and release the dll, the user gets an unhandled
exception. It doesn't halt the code, it just shows an error dialog...click
continue and it continues.

Is there some setting I must set so that I can see these during development?

Thanks.
Feb 23 '07 #1
5 2080
I'm just a beginner so take this with a grain of salt:
use the Err.Number and Err.Discripion for several of the posible exceptions
to find out what the problem is by sending the results to a MsgBox?

Randy

"Tim Zych" <FirstInitial+LastName@earth_LinkDotNetwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
What factor would allow an unhandled exception to occur in a compiled
project, versus no error for the same action during development? In other
words, I have a project that, in development when I test it, runs no
problem. When I compile and release the dll, the user gets an unhandled
exception. It doesn't halt the code, it just shows an error dialog...click
continue and it continues.

Is there some setting I must set so that I can see these during
development?

Thanks.


Feb 23 '07 #2
The problem is not finding out what unhandled exception occurred. It's that
the exception is raised by the compiled (released) DLL, but not in
development mode.

I'm trying to learn why the IDE won't return the unhandled exception, but
the compiled application will.
"Randy" <ac***@comcast.netwrote in message
news:D8******************************@comcast.com. ..
I'm just a beginner so take this with a grain of salt:
use the Err.Number and Err.Discripion for several of the posible
exceptions
to find out what the problem is by sending the results to a MsgBox?

Randy

"Tim Zych" <FirstInitial+LastName@earth_LinkDotNetwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
>What factor would allow an unhandled exception to occur in a compiled
project, versus no error for the same action during development? In other
words, I have a project that, in development when I test it, runs no
problem. When I compile and release the dll, the user gets an unhandled
exception. It doesn't halt the code, it just shows an error
dialog...click continue and it continues.

Is there some setting I must set so that I can see these during
development?

Thanks.



Feb 23 '07 #3
Tim Zych wrote:
What factor would allow an unhandled exception to occur in a compiled
project, versus no error for the same action during development? In other
words, I have a project that, in development when I test it, runs no
problem. When I compile and release the dll, the user gets an unhandled
exception. It doesn't halt the code, it just shows an error dialog...click
continue and it continues.

Is there some setting I must set so that I can see these during development?

Thanks.
When the code is compiled in release mode it's more optimised. The code
compiled in debug more does for example contain a lot of NOP (no
operation) instructions as placeholders for debugging breakpoints, which
are not included in the relase mode.

It's possible that you have an error in your code that doesn't result in
an exception in debug mode but does in release mode. (It's also possible
that it's the result of an error in the compiler, but that is much less
likely.)

--
Göran Andersson
_____
http://www.guffa.com
Feb 24 '07 #4
Interesting...so I suppose the "best" way for me to test changes to a
solution, based on this experience, is outside the IDE.
Thanks for the feedback.

"Göran Andersson" <gu***@guffa.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
Tim Zych wrote:
>What factor would allow an unhandled exception to occur in a compiled
project, versus no error for the same action during development? In other
words, I have a project that, in development when I test it, runs no
problem. When I compile and release the dll, the user gets an unhandled
exception. It doesn't halt the code, it just shows an error
dialog...click continue and it continues.

Is there some setting I must set so that I can see these during
development?

Thanks.

When the code is compiled in release mode it's more optimised. The code
compiled in debug more does for example contain a lot of NOP (no
operation) instructions as placeholders for debugging breakpoints, which
are not included in the relase mode.

It's possible that you have an error in your code that doesn't result in
an exception in debug mode but does in release mode. (It's also possible
that it's the result of an error in the compiler, but that is much less
likely.)

--
Göran Andersson
_____
http://www.guffa.com


Feb 24 '07 #5
Interesting...so I suppose the "best" way for me to test changes to a
solution, based on this experience, is outside the IDE.
Thanks for the feedback.

"Göran Andersson" <gu***@guffa.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
Tim Zych wrote:
>What factor would allow an unhandled exception to occur in a compiled
project, versus no error for the same action during development? In other
words, I have a project that, in development when I test it, runs no
problem. When I compile and release the dll, the user gets an unhandled
exception. It doesn't halt the code, it just shows an error
dialog...click continue and it continues.

Is there some setting I must set so that I can see these during
development?

Thanks.

When the code is compiled in release mode it's more optimised. The code
compiled in debug more does for example contain a lot of NOP (no
operation) instructions as placeholders for debugging breakpoints, which
are not included in the relase mode.

It's possible that you have an error in your code that doesn't result in
an exception in debug mode but does in release mode. (It's also possible
that it's the result of an error in the compiler, but that is much less
likely.)

--
Göran Andersson
_____
http://www.guffa.com


Feb 24 '07 #6

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

Similar topics

5
by: Nathan Wiegman | last post by:
Using the XmlSerializer to deserialize a double.NaN value generates an exception in the framework which the framework then catches. This is super undesirable in our application, because our...
1
by: Pardhasaradhy | last post by:
Hi, Please see the following error and revert back as early as possible. I am getting this once I request for the asp.net page. Server Error in '/tanishq' Application. Timed out waiting for...
0
by: Marco Viana | last post by:
Hi, I'm developing an ASP.NET application with Visual Studio .NET 2003 in a Win XP Professional, .NET Framework 1.1 and IIS 5.1 computer with all the lattest patches. When testing a page...
7
by: Chuck Hartman | last post by:
I have a Windows service that requests web pages from a site using an HttpWebRequest object. When I try to request a page from an ASP.NET 2 site, I get a WebException with message "The remote...
5
by: Dave Stewart | last post by:
I recently wrote my first Vb.net application, or at least my first complex app since moving up from vb6. When run from the VS.NET IDE, the program shows no errors and runs fine. When the output exe...
5
by: Samuel R. Neff | last post by:
When you have an unhandled exception in vb.net how do you view the exception information in the debugger? In C# the debugger creates a local variable that points to the exception and you can...
3
by: Ankit Aneja | last post by:
This is my problem. I am using Visual 2003, .Net framework 1.1 and the Application Block I configured the DAAB using the Enterprise Library Configuration now this is the error which is coming ...
6
by: Viktar Zhardzetski | last post by:
Hi everybody, let me start with a simple sample to replicate the problem: 1. Create a new Windows Application C# project with 2 forms - MainForm and FaultyForm; 2. In the faulty form...
17
by: Zytan | last post by:
I am using: Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException); But, my function is not run when an exception is thrown on another...
1
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.