[vtkusers] Strange compile problem for callback function based onvtkCommand

Øystein Skotheim oystein+vtk at edge.no
Thu Dec 15 09:37:02 EST 2005


> When you're compiling in debug mode, VC tend to add
> #define new DEBUG_NEW
> to your source code. and
> DEBUG_NEW in turn, is #defined as new(THIS_FILE, __LINE__)
> 
> On the other hand, operator new is defined in vtkObjectBase as
> 
>  void* operator new( size_t tSize );
> 
> which takes only one argument.  (There isn't a three argument operator 
> new defined).

I removed the line with #define DEBUG_NEW from my source file. This made 
it compile. Thank you :-)

-- 

Øystein Skotheim
Scientist, Optical Measurement Systems and Data Analysis
SINTEF ICT [http://www.sintef.com/omd]



More information about the vtkusers mailing list