[GME-commit] GMESRC/GME/Gme MainFrm.cpp,1.29,1.30
gme-commit at list.isis.vanderbilt.edu
gme-commit at list.isis.vanderbilt.edu
Fri Apr 15 21:02:10 CDT 2005
Update of /project/gme-repository/GMESRC/GME/Gme
In directory escher:/tmp/cvs-serv23400
Modified Files:
MainFrm.cpp
Log Message:
Removing testing code
CVS User: Zoltan Molnar, ISIS (zolmol)
Index: MainFrm.cpp
===================================================================
RCS file: /project/gme-repository/GMESRC/GME/Gme/MainFrm.cpp,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** MainFrm.cpp 15 Apr 2005 18:24:10 -0000 1.29
--- MainFrm.cpp 15 Apr 2005 20:02:08 -0000 1.30
***************
*** 109,122 ****
disp = mGmeOleApp->GetIDispatch(FALSE); // do not increment the refcount
! ULONG ul;
! ul = disp->AddRef();ul = disp->Release();
!
! m_console.SetGMEApp(disp); // ???? // increments the refcount to 2 (since it stores the value in a smart pointer)
!
! ul = disp->AddRef();ul = disp->Release();
// decrement the refcount, relying on the other components maintaining the correct refcounts
//this line is needed either in setGmeOleApp or here
! ul = mGmeOleApp->GetIDispatch(FALSE)->Release();
//ul = mGmeOleApp->GetIDispatch(FALSE)->Release(); //decrement the refcount to 1
--- 109,117 ----
disp = mGmeOleApp->GetIDispatch(FALSE); // do not increment the refcount
! m_console.SetGMEApp(disp); // increments the refcount to 2 (since it stores the value in a smart pointer)
// decrement the refcount, relying on the other components maintaining the correct refcounts
//this line is needed either in setGmeOleApp or here
! ULONG ul = mGmeOleApp->GetIDispatch(FALSE)->Release();
//ul = mGmeOleApp->GetIDispatch(FALSE)->Release(); //decrement the refcount to 1
***************
*** 131,135 ****
// beware that when the main GME would like to destruct the Console upon exiting
// then the Console has to be the last referring to the GmeOleApp, so that it
! // can be
}
--- 126,130 ----
// beware that when the main GME would like to destruct the Console upon exiting
// then the Console has to be the last referring to the GmeOleApp, so that it
! // can be released
}
***************
*** 140,150 ****
disp = mGmeOleApp->GetIDispatch(FALSE); // do not increment the refcount
- ULONG ul;
- ul = disp->AddRef();ul = disp->Release();
-
m_console.SetGMEProj(disp);
-
- ul = disp->AddRef();ul = disp->Release();
- //ul = mGmeOleApp->GetIDispatch(FALSE)->Release(); //decrement the refcount to 1
}
--- 135,139 ----
More information about the GME-commit
mailing list