473,771 Members | 2,392 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Easiest possible error handling?

Hi

Does anyone know of a component that can facilitate error handling in a
complex application.

What I'm looking for is a component you can simply drop on your application
form (or the like). If an exception occurs, it will generate a useful error
message containing procedure, line number etc for the offensive code and
either send it itself to a specified email address or give the user the
option of reporting the error.

Is that too much to ask? ;-)

Cheers,
Johnny J.
Apr 10 '07 #1
4 1582
On Apr 10, 11:01 am, "Johnny Jörgensen" <j...@altcom.se wrote:
Hi

Does anyone know of a component that can facilitate error handling in a
complex application.

What I'm looking for is a component you can simply drop on your application
form (or the like). If an exception occurs, it will generate a useful error
message containing procedure, line number etc for the offensive code and
either send it itself to a specified email address or give the user the
option of reporting the error.

Is that too much to ask? ;-)

Cheers,
Johnny J.
Be a programmer and write your own! If you need help do a search in
this newsgroup for global exception handlers (Jay Harlow writes about
them all the time) and then just code in the email (hint, use
System.Net.Mail ) and the other reporting bits. You should be exactly
what you want in very little time and then you wouldn't have to worry
about 3rd party code.

Thanks,

Seth Rowe

Apr 10 '07 #2
I could do that, but that's not what I want. I want to be able to spend my
valuable time coding the things that matter instead... :-)

But I don't want to get into a discussion about that, I simply want to know
if anybody knows a good control for that.

Cheers,
Johnny J.
"rowe_newsgroup s" <ro********@yah oo.comwrote in message
news:11******** **************@ l77g2000hsb.goo glegroups.com.. .
On Apr 10, 11:01 am, "Johnny Jörgensen" <j...@altcom.se wrote:
Hi

Does anyone know of a component that can facilitate error handling in a
complex application.

What I'm looking for is a component you can simply drop on your
application
form (or the like). If an exception occurs, it will generate a useful
error
message containing procedure, line number etc for the offensive code and
either send it itself to a specified email address or give the user the
option of reporting the error.

Is that too much to ask? ;-)

Cheers,
Johnny J.
Be a programmer and write your own! If you need help do a search in
this newsgroup for global exception handlers (Jay Harlow writes about
them all the time) and then just code in the email (hint, use
System.Net.Mail ) and the other reporting bits. You should be exactly
what you want in very little time and then you wouldn't have to worry
about 3rd party code.

Thanks,

Seth Rowe
Apr 11 '07 #3
I could do that, but that's not what I want. I want to be able to spend my
valuable time coding the things that matter instead... :-)
Trust me, exception handling is one of the most valuable things you
can program. A terrific program that crashes expectantly is one area
will cause distrust of you and your applications. This is why I feel
you should take the time and write you own, as when it comes to
importance you shouldn't leave it up to others.

Besides, the simple email and MessageBox.Show (...) handling you
mentioned would probably take around an hour to write. Just subscripe
to the Application.Thr eadException and AppDomain.Unhan dledException
and use System.Net.Mail to send an email and program in the test you
want to use to determine if you should notify the user.

Thanks,

Seth Rowe
On Apr 11, 2:40 am, "Johnny Jörgensen" <j...@altcom.se wrote:
I could do that, but that's not what I want. I want to be able to spend my
valuable time coding the things that matter instead... :-)

But I don't want to get into a discussion about that, I simply want to know
if anybody knows a good control for that.

Cheers,
Johnny J.

"rowe_newsgroup s" <rowe_em...@yah oo.comwrote in message

news:11******** **************@ l77g2000hsb.goo glegroups.com.. .
On Apr 10, 11:01 am, "Johnny Jörgensen" <j...@altcom.se wrote:
Hi
Does anyone know of a component that can facilitate error handling in a
complex application.
What I'm looking for is a component you can simply drop on your
application
form (or the like). If an exception occurs, it will generate a useful
error
message containing procedure, line number etc for the offensive code and
either send it itself to a specified email address or give the user the
option of reporting the error.
Is that too much to ask? ;-)
Cheers,
Johnny J.

Be a programmer and write your own! If you need help do a search in
this newsgroup for global exception handlers (Jay Harlow writes about
them all the time) and then just code in the email (hint, use
System.Net.Mail ) and the other reporting bits. You should be exactly
what you want in very little time and then you wouldn't have to worry
about 3rd party code.

Thanks,

Seth Rowe

Apr 11 '07 #4

"Johnny Jörgensen" <jo**@altcom.se wrote in message
news:OH******** ******@TK2MSFTN GP02.phx.gbl...
>I could do that, but that's not what I want. I want to be able to spend my
valuable time coding the things that matter instead... :-)

But I don't want to get into a discussion about that, I simply want to
know if anybody knows a good control for that.

Cheers,
Johnny J.
"rowe_newsgroup s" <ro********@yah oo.comwrote in message
news:11******** **************@ l77g2000hsb.goo glegroups.com.. .
On Apr 10, 11:01 am, "Johnny Jörgensen" <j...@altcom.se wrote:
>Hi

Does anyone know of a component that can facilitate error handling in a
complex application.

What I'm looking for is a component you can simply drop on your
application
form (or the like). If an exception occurs, it will generate a useful
error
message containing procedure, line number etc for the offensive code and
either send it itself to a specified email address or give the user the
option of reporting the error.

Is that too much to ask? ;-)

Cheers,
Johnny J.

Be a programmer and write your own! If you need help do a search in
this newsgroup for global exception handlers (Jay Harlow writes about
them all the time) and then just code in the email (hint, use
System.Net.Mail ) and the other reporting bits. You should be exactly
what you want in very little time and then you wouldn't have to worry
about 3rd party code.

Thanks,

Seth Rowe

mztools

Apr 14 '07 #5

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

Similar topics

12
6694
by: Christian Christmann | last post by:
Hi, assert and error handling can be used for similar purposes. When should one use assert instead of try/catch and in which cases the error handling is preferable? I've read somewhere that assert could be used to start an interactive debugger automatically. How do I realize that on a Linux machine using gcc?
1
2130
by: M Wells | last post by:
Hi All, Further to my previous long-winded question about a situation in which we appear to be mysteriously losing data from our mssql2k server. We discovered an update statement, in the stored procedure we believe is at fault, after which no error check was being performed. Under certain conditions, this update is fired against the same record in the same table as the immediately preceding update statement within
6
8467
by: Squirrel | last post by:
I have a command button on a subform to delete a record. The only statement in the subroutine is: DoCmd.RunCommand acCmdDeleteRecord The subform's recordsource is "select * from tblVisit order by VisitDt" I'm getting this error message: Errno is 2465. Err.description is "Can't find field '|' referred to in your expression"
13
4485
by: Thelma Lubkin | last post by:
I use code extensively; I probably overuse it. But I've been using error trapping very sparingly, and now I've been trapped by that. A form that works for me on the system I'm using, apparently runs into problems on the system where it will actually be used, and since I used so little error-trapping it dies very ungracefully. I will of course try to fix whatever is causing the error and add error-trapping to the functions where the...
21
4424
by: Anthony England | last post by:
Everyone knows that global variables get re-set in an mdb when an un-handled error is encountered, but it seems that this also happens when the variable is defined as private at form-level. So if "global variables get re-set" doesn't tell the whole story, then what does? ***please note*** I'm not looking for a solution - I'm looking for a more detailed description of what happens when an un-handled error occurs - possibly with help file...
4
1939
by: Al Williams | last post by:
Hi, I have error handling in place throughout my application. I also start the application wrapped in error handling code to catch any unexpected exceptions (i.e. exceptions that occur where I haven't placed error handling code). When I run my app from the IDE, the unhandled errors are caught by the error handling code in my Sub Main routine and the error details are logged to a text file and optionally e-mailed to me for follow-up.
1
1139
by: jquinn+google | last post by:
Heres the situation: class AbstractThing(): def changeMe(self,blah): if blah < 1: raise MyException self.blah = blah class NetworkedThing(AbstractThing): def changeMe(self,blah):
9
3297
by: MrDeej | last post by:
Hello guys! We have an SQL server which sometimes makes timeouts and connection errors. And we have an function witch writes and updates data in 2 tables on this server. When the SQL server error appears it, in 99%, of the cases, works if we just press the play button in VBA debug. Therefor we have maked an error handling which just tryes again. However, as this error handling is difficult to test because of maybe 1 or 2 errors a day, we...
0
9619
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10261
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10103
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7460
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.