개정판 5a4b8f32
dev issue #000 : minor
Change-Id: Ica05dfe36d93560908db64b918ebad4ccb1742fe
DTI_PID/SPPIDConverter/AutoModeling.cs | ||
---|---|---|
997 | 997 |
ReleaseCOMObjects(_LmLabelPersist); |
998 | 998 |
} |
999 | 999 |
else |
1000 |
{ |
|
1001 | 1000 |
RetryEndBreakModeling(endBreak, targetLMConnector); |
1002 |
} |
|
1003 | 1001 |
|
1004 | 1002 |
foreach (var item in connectorVertices) |
1005 | 1003 |
ReleaseCOMObjects(item.Key); |
... | ... | |
1076 | 1074 |
ReleaseCOMObjects(_LmLabelPersist); |
1077 | 1075 |
} |
1078 | 1076 |
else |
1079 |
{ |
|
1080 | 1077 |
RetryEndBreakModeling(endBreak, targetLMConnector); |
1081 |
} |
|
1082 | 1078 |
} |
1083 | 1079 |
|
1084 | 1080 |
ReleaseCOMObjects(_LMSymbol); |
... | ... | |
1604 | 1600 |
|
1605 | 1601 |
} |
1606 | 1602 |
|
1607 |
public void ReleaseCOMObjects(params object[] objVars) |
|
1608 |
{ |
|
1609 |
int intNewRefCount = 0; |
|
1610 |
foreach (object obj in objVars) |
|
1611 |
{ |
|
1612 |
if (!Information.IsNothing(obj) && System.Runtime.InteropServices.Marshal.IsComObject(obj)) |
|
1613 |
intNewRefCount = intNewRefCount + System.Runtime.InteropServices.Marshal.FinalReleaseComObject(obj); |
|
1614 |
} |
|
1615 |
} |
|
1616 |
|
|
1617 | 1603 |
private void CalcLabelLocation(ref double x, ref double y, double originX, double originY, SPPIDLabelLocationInfo SPPIDLabelLocation, Location location) |
1618 | 1604 |
{ |
1619 | 1605 |
if (location == Location.None) |
... | ... | |
1640 | 1626 |
y = SPPIDLabelLocation.Y2; |
1641 | 1627 |
} |
1642 | 1628 |
} |
1629 |
|
|
1630 |
public void ReleaseCOMObjects(params object[] objVars) |
|
1631 |
{ |
|
1632 |
int intNewRefCount = 0; |
|
1633 |
foreach (object obj in objVars) |
|
1634 |
{ |
|
1635 |
if (!Information.IsNothing(obj) && System.Runtime.InteropServices.Marshal.IsComObject(obj)) |
|
1636 |
intNewRefCount = intNewRefCount + System.Runtime.InteropServices.Marshal.FinalReleaseComObject(obj); |
|
1637 |
} |
|
1638 |
} |
|
1643 | 1639 |
} |
1644 | 1640 |
} |
내보내기 Unified diff