G
Guest
Hello
I have created MessageQueue called Req_MSMQ and have a PeekCompleted event added as follow
Req_MSMQ.PeekCompleted += new PeekCompletedEventHandler(OnRequestPeeked)
Req_MSMQ.BeginPeek()
When I destroy this object (Req_MSMQ) as follow, It doesn't clean up Memory properly.
Req_MSMQ.PeekCompleted -= new PeekCompletedEventHandler(OnRequestPeeked)
Req_MSMQ.Dispose()
But If i don't create the PeekCompleted event, everything looks fine
I used System.GC.GetTotalMemory(true) to get the free mem.. I know GC staff!!!... It eventually goes out of resources on long run. That is bad
Thanks in advanc
Bob An
(e-mail address removed)
I have created MessageQueue called Req_MSMQ and have a PeekCompleted event added as follow
Req_MSMQ.PeekCompleted += new PeekCompletedEventHandler(OnRequestPeeked)
Req_MSMQ.BeginPeek()
When I destroy this object (Req_MSMQ) as follow, It doesn't clean up Memory properly.
Req_MSMQ.PeekCompleted -= new PeekCompletedEventHandler(OnRequestPeeked)
Req_MSMQ.Dispose()
But If i don't create the PeekCompleted event, everything looks fine
I used System.GC.GetTotalMemory(true) to get the free mem.. I know GC staff!!!... It eventually goes out of resources on long run. That is bad
Thanks in advanc
Bob An
(e-mail address removed)