delorie.com/archives/browse.cgi | search |
From: | Niklas_Pson AT nosmam DOT hotmail DOT com (Niklas Pettersson) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Strange behaviour of new/delete |
Date: | 7 Jun 2000 11:54:57 GMT |
Organization: | Lund Institute of Technology, Sweden |
Lines: | 11 |
Message-ID: | <8F4C86B4FNiklasPsonnospamhotm@130.235.20.4> |
References: | <8hknqj$gki$1 AT mulga DOT cs DOT mu DOT OZ DOT AU> <393DF410 DOT 93824118 AT earthlink DOT net> <8hkthr$kda$1 AT mulga DOT cs DOT mu DOT OZ DOT AU> |
NNTP-Posting-Host: | npedt97.univ.vxu.se |
User-Agent: | Xnews/03.04.11 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
operator new throws a exception on failure (bad_alloc). You can catch this with a catch statement or just let it pass (in that case the program will call abort automagical). The chance that new will fail is however very small since the harddrive can be used to simulate a very large virtual memory.. Just of couriousity, why do you use double** in this way? Is it an imlementation of a matrix or something? / Pson
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |