mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -07:00
Some small fixes for different parts of code.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2087 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
3411432a0e
commit
a5f900f92e
5 changed files with 79 additions and 29 deletions
|
@ -99,7 +99,7 @@ namespace Greenshot.Interop {
|
|||
} else {
|
||||
//LOG.Warn("Error getting active object for " + progId, comE);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
} catch (Exception) {
|
||||
//LOG.Warn("Error getting active object for " + progId, e);
|
||||
}
|
||||
|
||||
|
@ -157,14 +157,14 @@ namespace Greenshot.Interop {
|
|||
} else {
|
||||
//LOG.Warn("Error getting active object for " + progId, comE);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
} catch (Exception) {
|
||||
//LOG.Warn("Error getting active object for " + progId, e);
|
||||
}
|
||||
// Did we get the current instance? If not, try to create a new
|
||||
if (comObject == null) {
|
||||
try {
|
||||
comType = Type.GetTypeFromProgID(progId, true);
|
||||
} catch (Exception ex) {
|
||||
} catch (Exception) {
|
||||
//LOG.Warn("Error type for " + progId, ex);
|
||||
}
|
||||
if (comType != null) {
|
||||
|
@ -173,7 +173,7 @@ namespace Greenshot.Interop {
|
|||
if (comObject != null) {
|
||||
//LOG.DebugFormat("Created new instance of {0} object.", progId);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
} catch (Exception) {
|
||||
//LOG.Warn("Error creating object for " + progId, e);
|
||||
}
|
||||
}
|
||||
|
@ -254,7 +254,7 @@ namespace Greenshot.Interop {
|
|||
try {
|
||||
while (Marshal.ReleaseComObject(this._COMObject) > 0)
|
||||
;
|
||||
} catch (Exception ex) {
|
||||
} catch (Exception) {
|
||||
//LOG.WarnFormat("Problem releasing {0}", _COMType);
|
||||
//LOG.Warn("Error: ", ex);
|
||||
}
|
||||
|
@ -407,21 +407,21 @@ namespace Greenshot.Interop {
|
|||
foreach (MemberInfo memberInfo in type.GetMembers()) {
|
||||
//LOG.InfoFormat("Member: {0};", memberInfo.ToString());
|
||||
}
|
||||
} catch (Exception memberException) {
|
||||
} catch (Exception) {
|
||||
//LOG.Error(memberException);
|
||||
}
|
||||
try {
|
||||
foreach (PropertyInfo propertyInfo in type.GetProperties()) {
|
||||
//LOG.InfoFormat("Property: {0};", propertyInfo.ToString());
|
||||
}
|
||||
} catch (Exception propertyException) {
|
||||
} catch (Exception) {
|
||||
//LOG.Error(propertyException);
|
||||
}
|
||||
try {
|
||||
foreach (FieldInfo fieldInfo in type.GetFields()) {
|
||||
//LOG.InfoFormat("Field: {0};", fieldInfo.ToString());
|
||||
}
|
||||
} catch (Exception fieldException) {
|
||||
} catch (Exception) {
|
||||
//LOG.Error(fieldException);
|
||||
}
|
||||
//LOG.InfoFormat("Type information end.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue