mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 18:57:28 -07:00
Fixed and optimized some drawing routines, still didn't find a solution for shadowing when target format has transparency.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1648 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
46758d238c
commit
dede5cf292
16 changed files with 275 additions and 161 deletions
|
@ -209,7 +209,12 @@ namespace Greenshot.Interop {
|
|||
private void Dispose(bool disposing) {
|
||||
if (null != this._COMObject) {
|
||||
if(Marshal.IsComObject(this._COMObject)) {
|
||||
while( Marshal.ReleaseComObject(this._COMObject) > 0 );
|
||||
try {
|
||||
while (Marshal.ReleaseComObject(this._COMObject) > 0) ;
|
||||
} catch (Exception ex) {
|
||||
LOG.WarnFormat("Problem releasing {0}", _COMType);
|
||||
LOG.Warn("Error: ", ex);
|
||||
}
|
||||
}
|
||||
|
||||
this._COMObject = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue