[ECOS] New/delete operator's?

Boris V. Guzhov borg@int.spb.ru
Mon Oct 23 11:32:00 GMT 2000


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





More information about the Ecos-discuss mailing list