mirror of
https://github.com/greenshot/greenshot
synced 2025-07-14 17:13:44 -07:00
First code analysis changes, this "should" make Greenshot more stable and implement things as is supposed.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2481 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
3f4d93f2b6
commit
a394904aa3
64 changed files with 514 additions and 343 deletions
|
@ -228,7 +228,6 @@ namespace Greenshot.Interop {
|
|||
/// sure that the COM object is still cleaned up.
|
||||
/// </summary>
|
||||
~COMWrapper() {
|
||||
//LOG.DebugFormat("Finalize {0}", this._InterceptType.ToString());
|
||||
this.Dispose(false);
|
||||
}
|
||||
|
||||
|
@ -248,12 +247,10 @@ namespace Greenshot.Interop {
|
|||
/// <see cref="IDisposable"/> interface.
|
||||
/// </param>
|
||||
private void Dispose(bool disposing) {
|
||||
if (null != this._COMObject) {
|
||||
//LOG.DebugFormat("Disposing {0}", this._InterceptType.ToString());
|
||||
if (disposing && null != this._COMObject) {
|
||||
if (Marshal.IsComObject(this._COMObject)) {
|
||||
try {
|
||||
while (Marshal.ReleaseComObject(this._COMObject) > 0)
|
||||
;
|
||||
while (Marshal.ReleaseComObject(this._COMObject) > 0);
|
||||
} catch (Exception) {
|
||||
//LOG.WarnFormat("Problem releasing {0}", _COMType);
|
||||
//LOG.Warn("Error: ", ex);
|
||||
|
@ -638,10 +635,10 @@ namespace Greenshot.Interop {
|
|||
/// </summary>
|
||||
public string TypeName {
|
||||
get {
|
||||
throw new NotImplementedException();
|
||||
throw new NotSupportedException();
|
||||
}
|
||||
set {
|
||||
throw new NotImplementedException();
|
||||
throw new NotSupportedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue