Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Modula 3 > Re: exception w...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 64 of 149
Post > Topic >>

Re: exception when NEW fails

by Olaf Wagner <wagner@[EMAIL PROTECTED] > Oct 20, 2003 at 06:43 AM

Henning Thielemann <iakd0@[EMAIL PROTECTED]
> wrote:

> I've learned from the a discussion years ago
> 
http://groups.google.de/groups?hl=de&lr=&ie=UTF-8&threadm=NAYERI.95Jun9115820%40bermuda.gte.com&rnum=3&prev=/groups%3Fq%3Dcallback%2Bexception%2Bgroup:comp.lang.modula3%26hl%3Dde%26lr%3D%26ie%3DUTF-8%26group%3Dcomp.lang.modula3%26selm%3DNAYERI.95Jun911582
>  that it is intended that the program is aborted unrecoverably if it
runs
> out of memory. This is not acceptable for GUI driven programs - the
> program cannot simply quit if the user enters a zero too much for a size
> value ... What is the current implementation in pm3 and cm3 ?

You will probably have found out by now, but the cm3 garbage collector
does

    IF (np = NIL) THEN
      RAISE RuntimeError.E (RuntimeError.T.OutOfMemory);
    END;

If you are able to do something meaningful with the exception depends
on many things outside the control of the core system.

-- 
/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
|| Olaf Wagner           | wagner(at)luthien.in-berlin.de (priv.)|
|| Cranachstrasse 7      | wagner(at)elego.de (business)         |
|| D-12157 Berlin        | phone: +49 30  85 60 26 70            | 
|| Germany / Deutschland | fax:   +49 30  85 58 01 88            | 
\/////////////////////////////////////////////////////////////////
 




 3 Posts in Topic:
exception when NEW fails
Henning Thielemann <ia  2003-10-07 10:07:51 
Re: exception when NEW fails
Olaf Wagner <wagner@[E  2003-10-20 06:43:51 
Re: exception when NEW fails
"Rodney M. Bates&quo  2003-10-31 22:28:53 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 0:30:44 CDT 2008.