Tag: cws_src680_dba201 User: oj Date: 05/04/28 23:03:04 Modified: /dba/dbaccess/source/ui/browser/ AsyncronousLink.cxx, brwctrlr.cxx, brwview.cxx, dbloader.cxx, exsrcbrw.cxx, formadapter.cxx, genericcontroller.cxx
Log: #i48414# insert DBG_ macros to find more memory leaks File Changes: Directory: /dba/dbaccess/source/ui/browser/ =========================================== File [changed]: AsyncronousLink.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/browser/AsyncronousLink.cxx?r1=1.2&r2=1.2.432.1 Delta lines: +11 -2 -------------------- --- AsyncronousLink.cxx 15 Mar 2001 08:15:07 -0000 1.2 +++ AsyncronousLink.cxx 29 Apr 2005 06:03:00 -0000 1.2.432.1 @@ -2,9 +2,9 @@ * * $RCSfile: AsyncronousLink.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.2.432.1 $ * - * last change: $Author: fs $ $Date: 2001/03/15 08:15:07 $ + * last change: $Author: oj $ $Date: 2005/04/29 06:03:00 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -64,10 +64,15 @@ #ifndef _SV_SVAPP_HXX #include <vcl/svapp.hxx> #endif +#ifndef _TOOLS_DEBUG_HXX +#include <tools/debug.hxx> +#endif + //================================================================== //= OAsyncronousLink //================================================================== using namespace dbaui; +DBG_NAME(OAsyncronousLink) //------------------------------------------------------------------ OAsyncronousLink::OAsyncronousLink(const Link& _rHandler, ::vos::OMutex* _pEventSafety, ::vos::OMutex* _pDestructionSafety) :m_aHandler(_rHandler) @@ -76,6 +81,8 @@ ,m_bOwnMutexes(FALSE) ,m_nEventId(0) { + DBG_CTOR(OAsyncronousLink,NULL); + if (_pEventSafety && _pDestructionSafety) { m_pEventSafety = _pEventSafety; @@ -114,6 +121,8 @@ } m_pEventSafety = NULL; m_pDestructionSafety = NULL; + + DBG_DTOR(OAsyncronousLink,NULL); } File [changed]: brwctrlr.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/browser/brwctrlr.cxx?r1=1.86&r2=1.86.36.1 Delta lines: +18 -3 -------------------- --- brwctrlr.cxx 1 Mar 2005 19:15:34 -0000 1.86 +++ brwctrlr.cxx 29 Apr 2005 06:03:01 -0000 1.86.36.1 @@ -2,9 +2,9 @@ * * $RCSfile: brwctrlr.cxx,v $ * - * $Revision: 1.86 $ + * $Revision: 1.86.36.1 $ * - * last change: $Author: kz $ $Date: 2005/03/01 19:15:34 $ + * last change: $Author: oj $ $Date: 2005/04/29 06:03:01 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -332,18 +332,23 @@ }; +DBG_NAME(FormControllerImpl) //------------------------------------------------------------------ SbaXDataBrowserController::FormControllerImpl::FormControllerImpl(SbaXDataBrowserController* m_pOwner) :m_pOwner(m_pOwner) ,m_bActive(sal_False) ,m_aActivateListeners(m_pOwner->getMutex()) { + DBG_CTOR(FormControllerImpl,NULL); + OSL_ENSURE(m_pOwner, "SbaXDataBrowserController::FormControllerImpl::FormControllerImpl : invalid Owner !"); } //------------------------------------------------------------------ SbaXDataBrowserController::FormControllerImpl::~FormControllerImpl() { + + DBG_DTOR(FormControllerImpl,NULL); } //------------------------------------------------------------------ @@ -529,6 +534,7 @@ OGenericUnoController::release(); } +DBG_NAME(SbaXDataBrowserController) //------------------------------------------------------------------------------ SbaXDataBrowserController::SbaXDataBrowserController(const Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rM) :OGenericUnoController(_rM) @@ -544,6 +550,8 @@ ,m_aAsyncGetCellFocus(LINK(this, SbaXDataBrowserController, OnAsyncGetCellFocus)) ,m_pFormControllerImpl(NULL) { + DBG_CTOR(SbaXDataBrowserController,NULL); + // create the form controller aggregate ::comphelper::increment(m_refCount); { @@ -564,6 +572,8 @@ Reference< XInterface > xEmpty; m_xFormControllerImpl->setDelegator(xEmpty); } + + DBG_DTOR(SbaXDataBrowserController,NULL); } // ----------------------------------------------------------------------------- void SbaXDataBrowserController::deleteView() @@ -2642,11 +2652,14 @@ void implDispose(); }; +DBG_NAME(LoadFormHelper) //------------------------------------------------------------------------------ LoadFormHelper::LoadFormHelper(const Reference< XRowSet > & _rxForm) :m_xForm(_rxForm) ,m_eState(STARTED) { + DBG_CTOR(LoadFormHelper,NULL); + Reference< ::com::sun::star::form::XLoadable > (m_xForm, UNO_QUERY)->addLoadListener(this); m_xForm->addRowSetListener(this); } @@ -2656,6 +2669,8 @@ { ::osl::MutexGuard aGuard(m_aAccessSafety); implDispose(); + + DBG_DTOR(LoadFormHelper,NULL); } //------------------------------------------------------------------------------ File [changed]: brwview.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/browser/brwview.cxx?r1=1.21&r2=1.21.80.1 Delta lines: +13 -3 -------------------- --- brwview.cxx 16 Nov 2004 14:30:43 -0000 1.21 +++ brwview.cxx 29 Apr 2005 06:03:01 -0000 1.21.80.1 @@ -2,9 +2,9 @@ * * $RCSfile: brwview.cxx,v $ * - * $Revision: 1.21 $ + * $Revision: 1.21.80.1 $ * - * last change: $Author: obo $ $Date: 2004/11/16 14:30:43 $ + * last change: $Author: oj $ $Date: 2005/04/29 06:03:01 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -136,6 +136,7 @@ //= UnoDataBrowserView //================================================================== +DBG_NAME(UnoDataBrowserView) // ------------------------------------------------------------------------- UnoDataBrowserView::UnoDataBrowserView( Window* pParent, IController* _pController, @@ -146,6 +147,8 @@ ,m_pTreeView(NULL) ,m_pStatus(NULL) { + DBG_CTOR(UnoDataBrowserView,NULL); + } // ------------------------------------------------------------------------- void UnoDataBrowserView::Construct(const Reference< ::com::sun::star::awt::XControlModel >& xModel) @@ -207,6 +210,8 @@ } catch(Exception) {} + + DBG_DTOR(UnoDataBrowserView,NULL); } // ----------------------------------------------------------------------------- IMPL_LINK( UnoDataBrowserView, SplitHdl, void*, p ) @@ -413,10 +418,13 @@ return nDone ? nDone : ODataView::PreNotify(rNEvt); } +DBG_NAME(BrowserViewStatusDisplay) // ----------------------------------------------------------------------------- BrowserViewStatusDisplay::BrowserViewStatusDisplay( UnoDataBrowserView* _pView, const String& _rStatus ) :m_pView(_pView) { + DBG_CTOR(BrowserViewStatusDisplay,NULL); + if (m_pView) m_pView->showStatus(_rStatus); } @@ -426,5 +434,7 @@ { if (m_pView) m_pView->showStatus(String()); + + DBG_DTOR(BrowserViewStatusDisplay,NULL); } // ----------------------------------------------------------------------------- File [changed]: dbloader.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/browser/dbloader.cxx?r1=1.22&r2=1.22.2.1 Delta lines: +8 -3 ------------------- --- dbloader.cxx 11 Apr 2005 10:04:46 -0000 1.22 +++ dbloader.cxx 29 Apr 2005 06:03:01 -0000 1.22.2.1 @@ -2,9 +2,9 @@ * * $RCSfile: dbloader.cxx,v $ * - * $Revision: 1.22 $ + * $Revision: 1.22.2.1 $ * - * last change: $Author: hr $ $Date: 2005/04/11 10:04:46 $ + * last change: $Author: oj $ $Date: 2005/04/29 06:03:01 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -167,15 +167,20 @@ const Reference< XLoadEventListener > & _rListener) throw(::com::sun::star::uno::RuntimeException); virtual void SAL_CALL cancel(void) throw(); }; +DBG_NAME(DBContentLoader) DBContentLoader::DBContentLoader(const Reference< XMultiServiceFactory >& _rxFactory) :m_xServiceFactory(_rxFactory) { + DBG_CTOR(DBContentLoader,NULL); + } // ------------------------------------------------------------------------- DBContentLoader::~DBContentLoader() { + + DBG_DTOR(DBContentLoader,NULL); } // ------------------------------------------------------------------------- // ------------------------------------------------------------------------- File [changed]: exsrcbrw.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/browser/exsrcbrw.cxx?r1=1.26&r2=1.26.130.1 Delta lines: +8 -3 ------------------- --- exsrcbrw.cxx 2 Aug 2004 15:34:10 -0000 1.26 +++ exsrcbrw.cxx 29 Apr 2005 06:03:01 -0000 1.26.130.1 @@ -2,9 +2,9 @@ * * $RCSfile: exsrcbrw.cxx,v $ * - * $Revision: 1.26 $ + * $Revision: 1.26.130.1 $ * - * last change: $Author: hr $ $Date: 2004/08/02 15:34:10 $ + * last change: $Author: oj $ $Date: 2005/04/29 06:03:01 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -122,6 +122,7 @@ return aRet; } +DBG_NAME(SbaExternalSourceBrowser) //------------------------------------------------------------------------------ SbaExternalSourceBrowser::SbaExternalSourceBrowser(const Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rM) :SbaXDataBrowserController(_rM) @@ -129,11 +130,15 @@ ,m_aModifyListeners(getMutex()) ,m_bInQueryDispatch( sal_False ) { + DBG_CTOR(SbaExternalSourceBrowser,NULL); + } //------------------------------------------------------------------------------ SbaExternalSourceBrowser::~SbaExternalSourceBrowser() { + + DBG_DTOR(SbaExternalSourceBrowser,NULL); } //------------------------------------------------------------------------- File [changed]: formadapter.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/browser/formadapter.cxx?r1=1.7&r2=1.7.120.1 Delta lines: +8 -3 ------------------- --- formadapter.cxx 8 Sep 2004 16:29:04 -0000 1.7 +++ formadapter.cxx 29 Apr 2005 06:03:01 -0000 1.7.120.1 @@ -2,9 +2,9 @@ * * $RCSfile: formadapter.cxx,v $ * - * $Revision: 1.7 $ + * $Revision: 1.7.120.1 $ * - * last change: $Author: rt $ $Date: 2004/09/08 16:29:04 $ + * last change: $Author: oj $ $Date: 2005/04/29 06:03:01 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -109,6 +109,7 @@ { return *(new SbaXFormAdapter()); } +DBG_NAME(SbaXFormAdapter) // ------------------------------------------------------------------------- SbaXFormAdapter::SbaXFormAdapter() :m_aLoadListeners(*this, m_aMutex) @@ -125,11 +126,15 @@ ,m_aContainerListeners(m_aMutex) ,m_nNamePropHandle(-1) { + DBG_CTOR(SbaXFormAdapter,NULL); + } // ------------------------------------------------------------------------- SbaXFormAdapter::~SbaXFormAdapter() { + + DBG_DTOR(SbaXFormAdapter,NULL); } // ------------------------------------------------------------------------- File [changed]: genericcontroller.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/browser/genericcontroller.cxx?r1=1.63.28.2&r2=1.63.28.3 Delta lines: +11 -2 -------------------- --- genericcontroller.cxx 26 Apr 2005 10:47:11 -0000 1.63.28.2 +++ genericcontroller.cxx 29 Apr 2005 06:03:02 -0000 1.63.28.3 @@ -2,9 +2,9 @@ * * $RCSfile: genericcontroller.cxx,v $ * - * $Revision: 1.63.28.2 $ + * $Revision: 1.63.28.3 $ * - * last change: $Author: oj $ $Date: 2005/04/26 10:47:11 $ + * last change: $Author: oj $ $Date: 2005/04/29 06:03:02 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -176,6 +176,7 @@ return sConfirmDeletionURL; } +DBG_NAME(OGenericUnoController) // ------------------------------------------------------------------------- OGenericUnoController::OGenericUnoController(const Reference< XMultiServiceFactory >& _rM) :OGenericUnoController_COMPBASE(m_aMutex) @@ -191,6 +192,8 @@ ,m_bDescribingSupportedFeatures( false ) #endif { + DBG_CTOR(OGenericUnoController,NULL); + try { m_xUrlTransformer = Reference< XURLTransformer > (_rM->createInstance(::rtl::OUString::createFromAscii("com.sun.star.util.URLTransformer")), UNO_QUERY); @@ -203,6 +206,8 @@ // ----------------------------------------------------------------------------- OGenericUnoController::~OGenericUnoController() { + + DBG_DTOR(OGenericUnoController,NULL); } // ----------------------------------------------------------------------------- @@ -801,6 +806,10 @@ // check out from all the objects we are listening // the frame stopFrameListening( ); + m_xMasterDispatcher = NULL; + m_xSlaveDispatcher = NULL; + m_xCurrentFrame = NULL; + m_xMultiServiceFacatory = NULL; } // ----------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
