#define _DEBUG
#endif
+ /* Need to undef new if including crtdbg.h */
+ #ifdef new
+ #undef new
+ #endif
+
#include <crtdbg.h>
+
+ #if defined(__WXDEBUG__) && wxUSE_GLOBAL_MEMORY_OPERATORS && wxUSE_DEBUG_NEW_ALWAYS
+ #define new new(__FILE__,__LINE__)
+ #endif
+
#endif
extern char *wxBuffer;
bool wxApp::Initialize()
{
+ // Some people may wish to use this, but
+ // probably it shouldn't be here by default.
+#ifdef __WXDEBUG__
+// wxRedirectIOToConsole();
+#endif
+
wxBuffer = new char[1500];
#ifdef wxUSE_VC_CRTDBG
return FALSE;
}
*/
-
+
+#ifndef __GNUWIN32__
// we need to initialize OLE library
if ( FAILED(::OleInitialize(NULL)) )
wxFatalError(_("Cannot initialize OLE"));
+#endif
#if CTL3D
if (!Ctl3dRegister(wxhInstance))
if ( wxDisableButtonBrush )
::DeleteObject( wxDisableButtonBrush ) ;
+#ifndef __GNUWIN32__
::OleUninitialize();
+#endif
#if CTL3D
Ctl3dUnregister(wxhInstance);
if (event.MoreRequested())
needMore = TRUE;
- wxNode* node = win->GetChildren()->First();
+ wxNode* node = win->GetChildren().First();
while (node)
{
wxWindow* win = (wxWindow*) node->Data();