www.delorie.com/djgpp/bugs/show.cgi   search  
Bug 000279

When Created: 04/03/1999 11:00:19
Against DJGPP version: 2.01
By whom: anttisaa@kotitek.pp.fi
Abstract: new allocates same memory twice
My application (c++) uses both new and malloc() for dynamic memory allocation. In some cases, however, it seems that new allocates the same memory twice. The two pointers, which should point to different memory areas and which both are allocated using new, do not depend on each other in any way, but their numerical value after the allocation simply is the same. The problem has not occurred in small programs, but I have encountered it twice when making medium-size programs. Due to the size of the program, I can't include an example.

Solution added: 04/06/1999 09:00:12
By whom: anttisaa@kotitek.pp.fi
I'm sorry - the bug wasn't in DJGPP but in my own code...

Fixed in version on 04/09/1999 11:00:17
By whom: broeker@physik.rwth-aachen.de



  webmaster     delorie software   privacy  
  Copyright © 2010   by DJ Delorie     Updated Jul 2010