473,508 Members | 2,396 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

vb.net running in debug mode vs. running the executable

I have a vb.net 2005 project and have made a lot of modifications to it. The
project runs fine in debug mode. Now I want to implement it and first I am
running the executable on my machine to make sure it runs properly...
However, when I run it locally as an executable, I get no end to run time
errors - things like conversions from type string to integer etc...etc....
There's seems to be a billion problems all of a sudden.

I have option strict turned OFF in my development environment. Is it
enforcing all of these errors that would normally have been generated with
option strict ON when running as an executable? Is there a way to get around
it at all? I don;t understand why it runs perfectly fine in dev but bombs
out in a big way when running as an executable...

Thanks,

Brad
Jun 27 '08 #1
4 3133
On May 22, 5:39 pm, "Brad Pears" <br...@truenorthloghomes.comwrote:
I have a vb.net 2005 project and have made a lot of modifications to it. The
project runs fine in debug mode. Now I want to implement it and first I am
running the executable on my machine to make sure it runs properly...
However, when I run it locally as an executable, I get no end to run time
errors - things like conversions from type string to integer etc...etc....
There's seems to be a billion problems all of a sudden.

I have option strict turned OFF in my development environment. Is it
enforcing all of these errors that would normally have been generated with
option strict ON when running as an executable? Is there a way to get around
it at all? I don;t understand why it runs perfectly fine in dev but bombs
out in a big way when running as an executable...

Thanks,

Brad
Why do you have Option Strict turned Off? In my book that is a huge no-
no. I'm not sure why they don't blow up during development, but you
should turn on Option Strict and fix them.

Thanks,

Seth Rowe [MVP]
Jun 27 '08 #2
Yes, I think you are right - I will do that from now on.... They really
shouldn't even give you that option really...

Thanks, Brad

"rowe_newsgroups" <ro********@yahoo.comwrote in message
news:39**********************************@a70g2000 hsh.googlegroups.com...
On May 22, 5:39 pm, "Brad Pears" <br...@truenorthloghomes.comwrote:
>I have a vb.net 2005 project and have made a lot of modifications to it.
The
project runs fine in debug mode. Now I want to implement it and first I
am
running the executable on my machine to make sure it runs properly...
However, when I run it locally as an executable, I get no end to run time
errors - things like conversions from type string to integer
etc...etc....
There's seems to be a billion problems all of a sudden.

I have option strict turned OFF in my development environment. Is it
enforcing all of these errors that would normally have been generated
with
option strict ON when running as an executable? Is there a way to get
around
it at all? I don;t understand why it runs perfectly fine in dev but bombs
out in a big way when running as an executable...

Thanks,

Brad

Why do you have Option Strict turned Off? In my book that is a huge no-
no. I'm not sure why they don't blow up during development, but you
should turn on Option Strict and fix them.

Thanks,

Seth Rowe [MVP]

Jun 27 '08 #3
It shouldn't be the difference all things being equals. If I remember the
IDE have an otpion to hide exceptions.

Also if you done your appl to continue whatever happens you'll have loads of
errors if something goes wrong but the first one is likely the more
signigifant (but example if data can't be loaded, you can then run in a fiar
amount of subsequent errors).

Your best bet would be investigate the first error you get. Optino strict o
is a good idea but it shouldn"t make a difference all things being equal
(basically it help to makes code that won"t contains those errors but if it
is off there i not reason you can run the code in debug mdoe with no error
and have loads of error when running the EXE file).

--
Patrice

"Brad Pears" <br***@truenorthloghomes.coma écrit dans le message de groupe
de discussion : eo**************@TK2MSFTNGP05.phx.gbl...
I have a vb.net 2005 project and have made a lot of modifications to it.
The project runs fine in debug mode. Now I want to implement it and first
I am running the executable on my machine to make sure it runs properly...
However, when I run it locally as an executable, I get no end to run time
errors - things like conversions from type string to integer etc...etc....
There's seems to be a billion problems all of a sudden.

I have option strict turned OFF in my development environment. Is it
enforcing all of these errors that would normally have been generated with
option strict ON when running as an executable? Is there a way to get
around it at all? I don;t understand why it runs perfectly fine in dev but
bombs out in a big way when running as an executable...

Thanks,

Brad
Jun 27 '08 #4
Thanks for your help!!!
"Patrice" <http://www.chez.com/scribe/wrote in message
news:BC**********************************@microsof t.com...
It shouldn't be the difference all things being equals. If I remember the
IDE have an otpion to hide exceptions.

Also if you done your appl to continue whatever happens you'll have loads
of errors if something goes wrong but the first one is likely the more
signigifant (but example if data can't be loaded, you can then run in a
fiar amount of subsequent errors).

Your best bet would be investigate the first error you get. Optino strict
o is a good idea but it shouldn"t make a difference all things being equal
(basically it help to makes code that won"t contains those errors but if
it is off there i not reason you can run the code in debug mdoe with no
error and have loads of error when running the EXE file).

--
Patrice

"Brad Pears" <br***@truenorthloghomes.coma écrit dans le message de
groupe de discussion : eo**************@TK2MSFTNGP05.phx.gbl...
>I have a vb.net 2005 project and have made a lot of modifications to it.
The project runs fine in debug mode. Now I want to implement it and first
I am running the executable on my machine to make sure it runs
properly... However, when I run it locally as an executable, I get no end
to run time errors - things like conversions from type string to integer
etc...etc.... There's seems to be a billion problems all of a sudden.

I have option strict turned OFF in my development environment. Is it
enforcing all of these errors that would normally have been generated
with option strict ON when running as an executable? Is there a way to
get around it at all? I don;t understand why it runs perfectly fine in
dev but bombs out in a big way when running as an executable...

Thanks,

Brad

Jun 27 '08 #5

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

Similar topics

7
21326
by: Wysiwyg | last post by:
Is there any way besides adding a specific debug command line argument for the project to tell if an application is running in debug mode? Thanks! Bill
3
3506
by: Max M. Power | last post by:
How can I tell if my C# code is running in debug mode? I need to execute some extra code only when my project has been compiled in debug mode. In release mode I don't want to execute this extra...
0
799
by: Bill Mitchell | last post by:
Each time I run my VB.NET app in debug mode using a connected Pocket PC device, the VS status bar says "Deploying <myappname>" and when my application runs on the PPC it ends up creating a new...
4
22253
by: Henry Padilla | last post by:
I found the following code snippet in the help but it doesn't seem to compile. Dim debugger As EnvDTE.Debugger Dim IsDebugging As Boolean debugger = DTE.Debugger If (debugger Is Nothing)...
0
1118
by: johnsburg | last post by:
Windows 2003 Server ..Net Studio 2003 Creating a simple Windows Form application from the templates, if I try to run it in debug mode devenv.exe aborts with this info: An unhandled exception...
3
7223
by: Bob | last post by:
If I'm running the executable, I need to do something, but if I am running the program fom within Visual studio I need to use another bit of code. Thanks for any help. Bob
3
2404
by: corey.hutchinson | last post by:
I have an application that when I run it in VS 2005 debug mode it operates faster (10 fold) than when I execute the exe directly from the bin directory. The one operation in particular in which...
8
5553
by: Jothishankar | last post by:
Hi, I am new to c#. I am trying to build an application that does backup of files to an external hard disk. My application behaves strangely. When i run the application under debug mode (F5),...
3
3728
by: kimiraikkonen | last post by:
Hi, I was looking for an example on CodeProject and saw an interesting thing, i downloaded the article source code and converted to my VB 2005 Express and compiled with no problem, however when i...
0
7224
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
7379
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...
1
7038
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
7493
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5625
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5049
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...
0
3180
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
763
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
415
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.