Quantcast
Channel: NetOffice - MS Office in .NET
Viewing all articles
Browse latest Browse all 1741

Commented Unassigned: Stack overflow in COMObject.Dispose [22231]

$
0
0
Hello,
Thank you for this great project.
I'm using it for my excel addin.
Recently I encountered the following problem.

I create many Range objects from some source Range using Range[], Application.Range, Application.Union methods. In that case the source Range object contains many many children objects of type Application, Range, etc.
When I disposing the source Range object, Stack overflow exception occurs.

Now I'm using reflection to get whole object graph to unbind objects from their parents and to dispose objects separately.

Please fix it. Thank you.
Comments: ** Comment from web user: antonr **

Hello Sebastian,

I have checked, It is not truly recursion issue. The children tree has 14646 levels and 29532 objects. All objects are different. ProxyCount shows me 29915.

Thank you,
Anton


Viewing all articles
Browse latest Browse all 1741

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>