[Fwd: Re: [ROOT] Problem with <operator new>]

From: Radovan Chytracek (Radovan.Chytracek@cern.ch)
Date: Thu May 18 2000 - 10:45:34 MEST


-------- Original Message --------
From: Radovan Chytracek <Radovan.Chytracek@cern.ch>
Subject: Re: [ROOT] Problem with <operator new>
To: "H. Gillespie" <hgillesp@u.washington.edu>

"H. Gillespie" wrote:
> 
> Hello,
> 
> Yes, I build using the 'Debug Multithreaded DLL' option in MSVC++ for my
> project. This should link against the multithreaded run-time libraries.

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

Hi,

         it seems you are mixing runtimes. If ROOT is built with
Multithreaded DLL runtime
and you use Debug Multithreaded DLL runtime you get into heap corruption
troubles for sure.

This has to with the way how the memory is allocated in different runtimes
for Debug and non-Debug
version of MSVC's DLLs. Try to switch option to Multithreaded DLL runtime
and your problem should go away.

Actually you usually don't need Debug Multithreaded DLL runtime unless you
need to debug Windows C runtime itself.

Radovan

-- 

Radovan Chytracek                     LHCb experiment at CERN
e-mail: Radovan.Chytracek@cern.ch     WWW: http://home.cern.ch/~chytrace
phone:  +41 22 76 72486



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