CapableObjects forum



Memory leak with waithandle?

Posted By Unknown (Yahoo) 2013-12-21 21:37:07
Add to Favorites0
Author Message
Unknown (Yahoo)
 Posted 2013-12-21 21:37:07
Supreme Being

Supreme Being - (1 481 reputation)Supreme Being - (1 481 reputation)Supreme Being - (1 481 reputation)Supreme Being - (1 481 reputation)Supreme Being - (1 481 reputation)Supreme Being - (1 481 reputation)Supreme Being - (1 481 reputation)Supreme Being - (1 481 reputation)Supreme Being - (1 481 reputation)

Group: Forum Members
Last Active: 2014-01-09 20:40:58
Posts: 2, Visits: 5
Hi,

We are using Eco 6 and I am profiling an app that was written a few years back using the ".net memory profiler". I am seeing the following memory leak errors due to the following reason (the profiler is saying that a GC collected the memory but dispose was not called):

mscorlib!System.Threading.EventWaitHandle..ctor( bool,EventResetMode,string )
mscorlib!System.Threading.EventWaitHandle..ctor( bool,EventResetMode )
mscorlib!System.Threading.AutoResetEvent..ctor( bool )
Eco.Handles!Eco.Services.Impl.AsyncSupportServiceImpl..ctor()
Eco.Handles!Eco.Handles.DefaultEcoSpace..ctor()
AMX.IS.Composer.Server.Model6.EcoSpace!AMX.IS.Composer.Server.Model.EcoSpace.ComposerModelEcoSpace..ctor() ComposerModelEcoSpace.Designer.cs
AMX.IS.Composer.Server.DomainServices!AMX.IS.Composer.Server.DomainServices.Repositories.EcoServiceProviderRepository.Retrieve() EcoServiceProviderRepository.cs
AMX.IS.Composer.Server.DomainServices!AMX.IS.Composer.Server.DomainServices.SessionService.CreateNewSession( string,string,string ) SessionService.cs
mscorlib!System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage( IMessage )
mscorlib!System.Runtime.Remoting.Messaging.ServerObjectTerminatorSink.SyncProcessMessage( IMessage )
mscorlib!System.Runtime.Remoting.Lifetime.LeaseSink.SyncProcessMessage( IMessage )
mscorlib!System.Runtime.Remoting.Messaging.ServerContextTerminatorSink.SyncProcessMessage( IMessage )
mscorlib!System.Runtime.Remoting.Contexts.WorkItem.ExecuteCallback( object[] )
mscorlib!System.Threading.Thread.CompleteCrossContextCallback( InternalCrossContextDelegate,object[] )
mscorlib!System.Threading.Thread.InternalCrossContextCallback( Context,InternalCrossContextDelegate,object[] )
mscorlib!System.Runtime.Remoting.Contexts.WorkItem.Execute()
mscorlib!System.Runtime.Remoting.Contexts.SynchronizationAttribute.ExecuteWorkItem( WorkItem )
mscorlib!System.Runtime.Remoting.Contexts.SynchronizationAttribute.HandleWorkRequest( WorkItem )
mscorlib!System.Runtime.Remoting.Contexts.SynchronizedServerContextSink.SyncProcessMessage( IMessage )
mscorlib!System.Runtime.Remoting.Channels.CrossContextChannel.SyncProcessMessageCallback( object[] )
mscorlib!System.Threading.Thread.CompleteCrossContextCallback( InternalCrossContextDelegate,object[] )
mscorlib!System.Threading.Thread.InternalCrossContextCallback( Context,InternalCrossContextDelegate,object[] )
mscorlib!System.Runtime.Remoting.Channels.CrossContextChannel.SyncProcessMessage( IMessage )
mscorlib!System.Runtime.Remoting.Proxies.RemotingProxy.CallProcessMessage( IMessageSink,IMessage,ArrayWithSize,Thread,Context,bool )
mscorlib!System.Runtime.Remoting.Proxies.RemotingProxy.InternalInvoke( IMethodCallMessage,bool,int )
[Truncated]


Is this a leak?
Unknown (Yahoo)
 Posted 2014-01-06 19:45:24
Supreme Being

Supreme Being - (1 481 reputation)Supreme Being - (1 481 reputation)Supreme Being - (1 481 reputation)Supreme Being - (1 481 reputation)Supreme Being - (1 481 reputation)Supreme Being - (1 481 reputation)Supreme Being - (1 481 reputation)Supreme Being - (1 481 reputation)Supreme Being - (1 481 reputation)

Group: Forum Members
Last Active: 2014-01-09 20:40:58
Posts: 2, Visits: 5
Any input on this? Is it a leak?
HansKarlsen
 Posted 2014-01-06 22:21:01
Supreme Being

Supreme Being - (102 786 reputation)Supreme Being - (102 786 reputation)Supreme Being - (102 786 reputation)Supreme Being - (102 786 reputation)Supreme Being - (102 786 reputation)Supreme Being - (102 786 reputation)Supreme Being - (102 786 reputation)Supreme Being - (102 786 reputation)Supreme Being - (102 786 reputation)

Group: Administrators
Last Active: 2016-05-11 20:56:01
Posts: 608, Visits: 3 230
Dono - have a repro sample? Mail it to us at support
PeterMorris
 Posted 2014-01-08 11:06:56
Supreme Being

Supreme Being - (60 048 reputation)Supreme Being - (60 048 reputation)Supreme Being - (60 048 reputation)Supreme Being - (60 048 reputation)Supreme Being - (60 048 reputation)Supreme Being - (60 048 reputation)Supreme Being - (60 048 reputation)Supreme Being - (60 048 reputation)Supreme Being - (60 048 reputation)

Group: Forum Members
Last Active: 2014-08-27 20:30:28
Posts: 324, Visits: 2 449
It looks like it isn't a resource leak but that the resource could be reclaimed more efficiently.

http://www.capableobjects.com/apps/InstantForum414/Uploads/Images/49c6933a-ab95-49c4-a69e-2657.png


_todoEvents needs to be disposed.

Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Back To Top