From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2607 invoked by alias); 7 May 2005 09:16:45 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 2508 invoked from network); 7 May 2005 09:16:34 -0000 Received: from unknown (HELO mail.rms.ro) (82.77.20.73) by sourceware.org with SMTP; 7 May 2005 09:16:34 -0000 Received: from [192.168.100.31] (pc31.rms.ro [192.168.100.31]) by mail.rms.ro (8.11.6/8.11.6) with ESMTP id j4797T628608; Sat, 7 May 2005 12:07:29 +0300 Message-ID: <427C876E.7010101@rms.ro> Date: Sat, 07 May 2005 16:19:00 -0000 From: Edgar Grimberg User-Agent: Mozilla Thunderbird 1.0.2-1.3.2 (X11/20050324) MIME-Version: 1.0 To: David Brennan CC: eCos Discussion List References: <427B77BF.5010302@brennanhome.com> In-Reply-To: <427B77BF.5010302@brennanhome.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [ECOS] Memory allocation failure X-SW-Source: 2005-05/txt/msg00104.txt.bz2 A total guess here, also... This happened to me not a long time ago.. I have wrote way over the memory I have allocated with malloc (I am still ashamed) and, after some steps, when trying to create another object, operator new returned me a big fat NULL. Of course, the problem was caused by my array index out of bound type of bug. How to check if this is your problem... try using ||struct mallinfo mallinfo|(void); (http://ecos.sourceware.org/docs-latest/ref/malloc-pools.html) and check the free memory. If you see something strange there... you must check if you don't get over your allocated memory. Good luck, Edgar|||| | -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss