Update of /cvsroot/mahogany/M/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8332/src/Python
Modified Files:
PythonDll.cpp
Log Message:
always use debug Python DLL in debug build under Windows
Index: PythonDll.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/Python/PythonDll.cpp,v
retrieving revision 1.16
retrieving revision 1.17
diff -b -u -2 -r1.16 -r1.17
--- PythonDll.cpp 18 Sep 2004 19:03:21 -0000 1.16
+++ PythonDll.cpp 19 Sep 2004 08:41:40 -0000 1.17
@@ -287,12 +287,12 @@
const String ext = wxDynamicLibrary::GetDllExt();
- if ( dllPython.Load(name + ext) )
- break;
+#if defined(OS_WIN) && defined(DEBUG)
+ // debug version of M should only use debug Python version under
+ // Windows, otherwise the CRTs they use mismatch and bad things happen
+ name += _T("_d");
+#endif // OS_WIN
-#ifdef OS_WIN
- // also try debug version of the DLL
- if ( dllPython.Load(name + _T("_d") + ext) )
+ if ( dllPython.Load(name + ext) )
break;
-#endif // OS_WIN
}
}
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates