|
From: Ioannis V. <no...@ho...> - 2002-06-09 23:08:11
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Jason Hardman > Sent: Monday, June 10, 2002 1:12 AM > To: Dev-C++ > Subject: Re: [Dev-C++] memory violation.... > > > You should check that "EleTopo" is non-null before using it, > just in case the memory allocation > failed. I can't remember if the current MinGW used with > Dev-C++ is standards compliant enought to > throw an exception when memory allocation fails. It is, and no, 0 can not be returned by new. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net * Alternative URL: http://run.to/noicys |