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

Code failing silently

I seem to have acquired a strange issue here, some of my programs are
now failing silently, resuming without notification that anything went
wrong, both on my development machine and (I think) on the users
machines. For instance, I was just noticing a spot where a table
adapter's fill method fails, and the new form just opens up anyway
after skipping the rest of the form's Load procedure without any
indication anything went wrong. I haven't fiddled with any of the
debug settings, and I don't remember if this started when I upgraded
to VS 2008 or a while later. I am pretty sure it never happened in
2005 though.

What settings should I check or change to *make* it tell me something
went wrong? Sorry, I know this makes me seem like a lame developer,
it's just that the default debug settings have always worked fine for
me so I don't know much about altering them.

Bob Graham
Jul 3 '08 #1
3 1524
sounds like you have a try/catch somewhere that is throwing the exception
away
"RvGrah" <rv****************@sbcglobal.netwrote in message
news:c4**********************************@u6g2000p rc.googlegroups.com...
>I seem to have acquired a strange issue here, some of my programs are
now failing silently, resuming without notification that anything went
wrong, both on my development machine and (I think) on the users
machines. For instance, I was just noticing a spot where a table
adapter's fill method fails, and the new form just opens up anyway
after skipping the rest of the form's Load procedure without any
indication anything went wrong. I haven't fiddled with any of the
debug settings, and I don't remember if this started when I upgraded
to VS 2008 or a while later. I am pretty sure it never happened in
2005 though.

What settings should I check or change to *make* it tell me something
went wrong? Sorry, I know this makes me seem like a lame developer,
it's just that the default debug settings have always worked fine for
me so I don't know much about altering them.

Bob Graham

Jul 3 '08 #2
gerry wrote:
sounds like you have a try/catch somewhere that is throwing the exception
away
- or a BackgroundWorker who silently "eats" the exception.

--
Michael Justin
SCJP, SCJA
betasoft - Software for Delphi™ and for the Java™ platform
http://www.mikejustin.com - http://www.betabeans.de
Jul 3 '08 #3
Thx for the input, but these ideas I've already looked at..

For instance, I'm getting this error:

A first chance exception of type 'System.NullReferenceException'
occurred in GranPoSys.exe

From this code line:

ultraGridPrintDocument1.Grid.DisplayLayout.Appeara nce.BorderColor =
Color.White;

because the "grid" property of the ultraGridPrintDocument had not been
set. But, instead of breaking into the running code, the user
interface just pops back up ready to interact with as though nothing
had gone wrong. The rest of the procedure does not complete though. I
know that with "Just My Code" enabled, it wouldn't break into the
third party control code, but in this case the error *is* happening at
"my code" level. It always used to break in but now it no longer does.

I've looked into the Exceptions list under the debug menu and it is
set to break when a user-unhandled null reference excetion happens.

Bob

On Jul 3, 10:29*am, RvGrah <rvgrahamsevaten...@sbcglobal.netwrote:
I seem to have acquired a strange issue here, some of my programs are
now failing silently, resuming without notification that anything went
wrong, both on my development machine and (I think) on the users
machines. For instance, I was just noticing a spot where a table
adapter's fill method fails, and the new form just opens up anyway
after skipping the rest of the form's Load procedure without any
indication anything went wrong. I haven't fiddled with any of the
debug settings, and I don't remember if this started when I upgraded
to VS 2008 or a while later. I am pretty sure it never happened in
2005 though.

What settings should I check or change to *make* it tell me something
went wrong? Sorry, I know this makes me seem like a lame developer,
it's just that the default debug settings have always worked fine for
me so I don't know much about altering them.

Bob Graham
Jul 12 '08 #4

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

Similar topics

9
by: Eric Lindsay | last post by:
I can't figure how to best display little snippets of shell script using <pre>. I just got around to organising to bulk validate some of my web pages, and one of the problems occurs with Bash...
28
by: lovecreatesbeauty | last post by:
Besides printing out for example " a.out: p113.c:8: main: Assertion `0' failed. Aborted " and a switch option NDEBUG, what other benefits does assert() provide in any scope of designing,...
4
by: Steve Teeples | last post by:
I have created an application install project that conditionally installs ..NET Frameworks 2.0 if it doesn't already exist on the target system before the app is installed. What I want to do is...
2
by: Andrew Poulos | last post by:
The stuff I've built recently works (in the sense that it does what I'm expecting it to do without any errors or warnings) in IE and FF but fails silently in Safari. I don't have a Mac to test on....
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.