Re: [ROOT] Problem with <operator new>

From: Valery Fine (fine@bnl.gov)
Date: Thu May 18 2000 - 04:20:48 MEST


> Hello,
> 
> Could anyone explain the ROOT new operator overloading? I'm running into a
> huge roadblock where suddenly (meaning this all seemed to work at one
> point) I cannot allocate ROOT or other objects - even in code that makes
> no reference to ROOT! I get either a Windows 'R6017 - multithread lock'
> error, which could indicate something going wrong with the heap or I get
> an error from ROOT like: "Fatal in <operator new>: storage
> exhausted" Which will repeat until there is an access violation. From the
> looks of the stack trace, the same function is being called in an infinite
> loop within the ROOT core library, until finally an access violation
> occurs and the application terminates.
> 
> Unfortunately this is on Windows with MSVC++ & I don't have debug
> information for the ROOT libraries.
> 
> Is ROOT doing something that might be overwriting parts of the heap? Has
> anyone seen something like this before?
> 


  Can you explain how did you build your project ?

  When you link against of  the ROOT libraries it is essential to choose the 
  "Multithread, Console application,  DLL"

 Please check the parameters of your project against of those %ROOTSYS%/test/Makefile 
defines

    Valery



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:25 MET