This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

New/delete operator's?


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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]