Re: .Net Exceptions
From: cody (please_dont.spam.deutronium_at_gmx.de)
Date: 09/19/04
- Next message: Patrick Philippot: "Re: What is HASH table ?"
- Previous message: Supra: "Re: What is HASH table ?"
- In reply to: Joerg Jooss: "Re: .Net Exceptions"
- Next in thread: Joerg Jooss: "Re: .Net Exceptions"
- Reply: Joerg Jooss: "Re: .Net Exceptions"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 19 Sep 2004 15:37:48 +0200
>> Why should user data die if a coponent which has nothing to do with you
>> user
>> data throws an Exception?
>> Maybe it is a visualisation component which throws an Exception for
>> example
>> if a number is too large or another specific condition and they never
>> tested
>> such a condition.
> The error may also be fatal and crash your application at a later point in
> time (thus disrupting data). Example: All managed code allocates memory
from
> the managed heap. An OutOfMemoryException even in a non-essential part of
> your application is a problem you cannot simply ignore.
Did you read my example with the soundcomponent? If it tries to allocate a
too large soundbuffer, an OutOfMemoryException will occur. But why should
the rest of my application care about that? Since the request to allocate
the large soundbuffer failed, we have still enough memory. We have no
background music playing but we are far far away from trouble.
> You may be right in guessing that's a stupid little bug in that component.
You may be wrong,
And if Iam wrong then the App crashes when there is really a problem which
affects vital parts of my app, but in most cases this is not the case.
cody
[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk
- Next message: Patrick Philippot: "Re: What is HASH table ?"
- Previous message: Supra: "Re: What is HASH table ?"
- In reply to: Joerg Jooss: "Re: .Net Exceptions"
- Next in thread: Joerg Jooss: "Re: .Net Exceptions"
- Reply: Joerg Jooss: "Re: .Net Exceptions"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|