Red Gate forums :: View topic - Problem: GC Rooted in thread
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

Problem: GC Rooted in thread

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



Joined: 27 Nov 2010
Posts: 3

PostPosted: Sat Nov 27, 2010 7:49 pm    Post subject: Problem: GC Rooted in thread Reply with quote

First off, thanks to Red Gate for this app. It's just saved me so much headache I can't even begin to explain.

I've got a game server that's got a worker thread that processes incoming data, and after a client logs out, everything is cleaned up in .Dispose, but the profiler indicates that I still have the Client object GC rooted in the thread. A quick overview of the app:

Code:

Sub IncomingQueueThread()

    Do
        Dim p As PendingPacket = m_Incoming.Dequeue ' This is a blocking queue which inherits the .NET Queue class
        ' p is processed here
    Loop Until m_Exit

End Sub

Class Client

End Class

Structure PendingPacket
    Public Client As Client, Packet As Packet
End Structure


I understand this isn't exactly a subject specific to the profiler, but I was hoping perhaps someone felt helpful enough to explain why it's tied up in the worker thread.

Thanks in advance.
Back to top
View user's profile Send private message
ShortAngry



Joined: 02 Dec 2010
Posts: 14

PostPosted: Fri Dec 10, 2010 12:52 pm    Post subject: Reply with quote

Not sure what's going on here. Does it still stick around if you do a second garbage collection?
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