Red Gate forums :: View topic - How to find the cause of StreamAsIStream leak
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Memory Profiler Previous Versions
ANTS Memory Profiler Previous Versions forum

How to find the cause of StreamAsIStream leak

Search in ANTS Memory Profiler Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Author Message
alexbusteed



Joined: 02 Jul 2010
Posts: 1

PostPosted: Fri Jul 02, 2010 3:13 pm    Post subject: How to find the cause of StreamAsIStream leak Reply with quote

I am writing a mixed WPF / Winforms application and find that when I create a new WPF view and present it using ElementHost, that two 5.04 MB byte[] objects are created on the Large Object Heap and are never disposed.

Using ANTS Memory Profiler 5.2, I see the object retention graph for these as showing:


    System.Byte[] (the object in question)
    System.IO.MemoryStream
    System.Windows.Media.StreamAsIStream
    GC Handle


I have filtered using "Kept in memory only by GC roots of type: COM+ (all other types were unticked).

According to other posts (e.g http://www.red-gate.com/MessageBoard/viewtopic.php?t=9521) this points at a native leak. But... I'm not sure how to progress.

Can anyone advise on how I can identify the source of the leak?

Many thanks
Alex
Back to top
View user's profile Send private message
nick.maidment



Joined: 29 Jan 2010
Posts: 74

PostPosted: Mon Jul 05, 2010 10:41 am    Post subject: Reply with quote

I just sent you an email, please let me know if you get it.
Back to top
View user's profile Send private message
mustangchik83



Joined: 13 Aug 2010
Posts: 1

PostPosted: Fri Aug 13, 2010 11:08 pm    Post subject: Same Problem Reply with quote

I'm running into the same issue - 2 objects with the same retention graph:

System.Byte[] (the object in question)
System.IO.MemoryStream
System.Windows.Media.StreamAsIStream
GC Handle

Both are gray indicating that dispose has been called. Together, they are taking up a whopping 5MB of memory. How can I track this further?

Thanks,
rachel
Back to top
View user's profile Send private message
AndyCombes



Joined: 03 Sep 2010
Posts: 1

PostPosted: Fri Sep 03, 2010 4:32 pm    Post subject: Reply with quote

I am also having this problem.

WinForms application hosting a WPF application, leaking 2-3Mb byte arrays via the same retention graph.

Has anybody shed any light on this yet?
Back to top
View user's profile Send private message
nick.maidment



Joined: 29 Jan 2010
Posts: 74

PostPosted: Fri Sep 10, 2010 1:03 pm    Post subject: Reply with quote

It would probably be worth emailing your results to support @ red-gate . com for further analysis
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group