Re: .Net Exceptions

From: Joerg Jooss (joerg.jooss_at_gmx.net)
Date: 09/19/04


Date: Sun, 19 Sep 2004 16:19:47 +0200

cody wrote:

> 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.

So waht? You still blindly assume that you know that a buffer cannot be
allocated because the allocation size is too big. You just don't know that.
It may be a reasonable assumption in your special case, but that hardly
translates to a general approach.

Cheers,

-- 
Joerg Jooss
joerg.jooss@gmx.net 


Relevant Pages

  • Re: Need some help understanding array definitions
    ... With care, one can create ... on the return stack, using R@ to get the address. ... There is ALLOCATE but it might be slow. ... ALLOCATE is an ok way to get temporary buffer space. ...
    (comp.lang.forth)
  • Re: Need some help understanding array definitions
    ... With care, one can create ... on the return stack, using R@ to get the address. ... There is ALLOCATE but it might be slow. ... ALLOCATE is an ok way to get temporary buffer space. ...
    (comp.lang.forth)
  • Re: Health care - thanks for reading this +++ : -) +++
    ... have to be there; someone has to allocate resources; you can't just ... Current insurance companies allocate which public care they are ... Republicans jumped on is about counseling, more in the way of adding ...
    (rec.sport.golf)
  • Re: Health care - thanks for reading this +++ : -) +++
    ... have to be there; someone has to allocate resources; you can't just ... Current insurance companies allocate which public care they are ... Republicans jumped on is about counseling, more in the way of adding ...
    (rec.sport.golf)
  • Re: Health care - thanks for reading this +++ : -) +++
    ... who says they aren't going to be part of the system is lying. ... Current insurance companies allocate which public care they are ... Republicans jumped on is about counseling, more in the way of adding ...
    (rec.sport.golf)