adding code to detect memory leak debugging shows error

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Nelson Joseph
Experienced Solver
Experienced Solver
Posts: 65
Joined: Sun Oct 26, 2008 5:15 am
Location: Chennai, India
Contact:

adding code to detect memory leak debugging shows error

Post by Nelson Joseph »

Hi All,

I am using wxVTKRenderWindowInteractor in my application. I just add the following code to detect memory leak
#ifdef __WXMSW__
#include <wx/msw/msvcrt.h>
#endif

But when I build my application, it shows the following error :
error C2660: 'vtkObject::operator new' : function does not take 4 arguments

the pointed lined is: m_pRenderWindowInteractor = new wxVTKRenderWindowInteractor( this, wxID_ANY );
Is it related to wxVTKRenderWindowInteractor.h ?

Thanks in advance.
Regards,
Nelson Joseph
bcteh
Experienced Solver
Experienced Solver
Posts: 72
Joined: Mon Nov 27, 2006 9:56 am

Re: adding code to detect memory leak debugging shows error

Post by bcteh »

I use the method from http://www.litwindow.com/Knowhow/wxHowt ... ebug_alloc
It work correctly.
Post Reply