[pywin32-checkins] pywin32/com/win32com/src PyIUnknown.cpp,1.6,1.7
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: <mha...@us...> - 2003-10-23 09:24:14
|
Update of /cvsroot/pywin32/pywin32/com/win32com/src In directory sc8-pr-cvs1:/tmp/cvs-serv31815 Modified Files: PyIUnknown.cpp Log Message: Fix the message when we capture a win32 exception, to make it a) clearer who is printing it, and b) so it fits on one line and doesn't imply a refcount bug when there is no evidence that is what it is (that is but one reason - another common one is pythoncom.CoUninitialize() called while before the otherwise valid reference is released. Index: PyIUnknown.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/src/PyIUnknown.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** PyIUnknown.cpp 10 Jan 2003 02:37:34 -0000 1.6 --- PyIUnknown.cpp 23 Oct 2003 07:29:40 -0000 1.7 *************** *** 152,157 **** { PyEval_RestoreThread(_save); ! LogF(_T("Exception occured:\n\tTry to release object at address 0x%08x\n\twhich was already destroyed"), ob->m_obj); ob->m_obj = NULL; return; } --- 152,160 ---- { PyEval_RestoreThread(_save); ! LogF(_T("Win32 exception occurred releasing IUnknown at 0x%08x"), ob->m_obj); ob->m_obj = NULL; + #ifdef _DEBUG + DebugBreak(); + #endif return; } |