Wed, 11/26/2008 - 06:33
Forums:
Can someone help me: why the "new" operation cannot work in Debug version, while ok in Release version?
Example: (in Debug version)
Handle(AIS_Shape) aBox1 = new AIS_Shape(B1); error:
error C2661: 'Standard_Transient::operator new' : no overloaded function takes 3 arguments
Wed, 11/26/2008 - 10:24
Do you use MFC? It redefines the "new" operator in debug version to track the memory allocations. In every cpp the MFC wizzard adds the following snippet:
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
If you have this, try to comment it.
Wed, 11/26/2008 - 12:45
Thanks a lot! It works :-)