Skip to content

Commit b6e18de

Browse files
committed
don't release form controls, it throws COMExceptions
1 parent f6350b1 commit b6e18de

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Rubberduck.VBEEditor/SafeComWrappers/VBA/Controls.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ public override void Release(bool final = false)
4242
{
4343
if (!IsWrappingNullReference)
4444
{
45-
for (var i = 1; i <= Count; i++)
46-
{
47-
this[i].Release();
48-
}
45+
//for (var i = 1; i <= Count; i++)
46+
//{
47+
// this[i].Release();
48+
//}
4949
base.Release(final);
5050
}
5151
}

0 commit comments

Comments
 (0)