This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
New/delete operator's?
- To: <ecos-discuss at sourceware dot cygnus dot com>
- Subject: [ECOS] New/delete operator's?
- From: "Boris V. Guzhov" <borg at int dot spb dot ru>
- Date: Mon, 23 Oct 2000 22:12:11 +0400
Hi All!
Recently I updated the eCos from anon cvs.
I think that the "delete" operator works not properly.
There is a simple test:
int main()
{
char *p;
int i;
for (i=0 ; ; i++)
{
p = new char [1500];
delete p;
printf("main: %d\n", i);
}
}
In my project (pc386):
CYGNUM_MEMALLOC_FALLBACK_MALLOC_POOL_SIZE = 16384
The test prints the last string
main: 100
and stops.
What's wrong?
Thanks in advance,
Guzhov Boris