Re: [Mono-dev] AppDomain Support
I will do. I'm trying to come to reproduce the issue outside of our app, when I do I'll attach the test to a bug. On 12 December 2013 09:52, Rodrigo Kumpera wrote: > Can you file a bug report with a full test case? This way we can have a > way to fix it? > > > On Wed, Dec 11, 2013 at 1:49 PM, Christian Smith wrote: > >> Hi Andres, >> >> I jumped the gun on thinking it wasn't implemented, don't believe the >> first SO post you read... >> >> We are having an issue though with type comparison between two domains >> though. >> >> We have domain A & B, both reference the same assembly with a class >> 'MyType'. Domain A passes MyType to domain B via a generic function. This >> function in Domain B has a check: >> >> public override T CreateInstance() >> { >> return (T)(CreateInstanceCore(typeof(T))); >> } >> >> protected object CreateInstanceCore(Type type) >> { >> if (type == typeof(MyType)) >> { >> return new BlahBlah(); >> } >> >> This works fine using .Net, but fails with Mono. >> >> Have you seen anything like this before? >> >> >> On 11 December 2013 23:42, "Andrés G. Aragoneses" wrote: >> >>> On 11/12/13 03:33, Christian Smith wrote: >>> > I was wondering what the current status of AppDomain support is and >>> what >>> > the plans for this are? I.e. is it not implemented? 70% implemented >>> etc... >>> >>> AFAIK it's fully implemented. Do you see any problems with it? >>> >>> >>> ___ >>> Mono-devel-list mailing list >>> Mono-devel-list@lists.ximian.com >>> http://lists.ximian.com/mailman/listinfo/mono-devel-list >>> >> >> >> ___ >> Mono-devel-list mailing list >> Mono-devel-list@lists.ximian.com >> http://lists.ximian.com/mailman/listinfo/mono-devel-list >> >> > ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] AppDomain Support
Can you file a bug report with a full test case? This way we can have a way to fix it? On Wed, Dec 11, 2013 at 1:49 PM, Christian Smith wrote: > Hi Andres, > > I jumped the gun on thinking it wasn't implemented, don't believe the > first SO post you read... > > We are having an issue though with type comparison between two domains > though. > > We have domain A & B, both reference the same assembly with a class > 'MyType'. Domain A passes MyType to domain B via a generic function. This > function in Domain B has a check: > > public override T CreateInstance() > { > return (T)(CreateInstanceCore(typeof(T))); > } > > protected object CreateInstanceCore(Type type) > { > if (type == typeof(MyType)) > { > return new BlahBlah(); > } > > This works fine using .Net, but fails with Mono. > > Have you seen anything like this before? > > > On 11 December 2013 23:42, "Andrés G. Aragoneses" wrote: > >> On 11/12/13 03:33, Christian Smith wrote: >> > I was wondering what the current status of AppDomain support is and what >> > the plans for this are? I.e. is it not implemented? 70% implemented >> etc... >> >> AFAIK it's fully implemented. Do you see any problems with it? >> >> >> ___ >> Mono-devel-list mailing list >> Mono-devel-list@lists.ximian.com >> http://lists.ximian.com/mailman/listinfo/mono-devel-list >> > > > ___ > Mono-devel-list mailing list > Mono-devel-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-devel-list > > ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] AppDomain Support
Hi Andres, I jumped the gun on thinking it wasn't implemented, don't believe the first SO post you read... We are having an issue though with type comparison between two domains though. We have domain A & B, both reference the same assembly with a class 'MyType'. Domain A passes MyType to domain B via a generic function. This function in Domain B has a check: public override T CreateInstance() { return (T)(CreateInstanceCore(typeof(T))); } protected object CreateInstanceCore(Type type) { if (type == typeof(MyType)) { return new BlahBlah(); } This works fine using .Net, but fails with Mono. Have you seen anything like this before? On 11 December 2013 23:42, "Andrés G. Aragoneses" wrote: > On 11/12/13 03:33, Christian Smith wrote: > > I was wondering what the current status of AppDomain support is and what > > the plans for this are? I.e. is it not implemented? 70% implemented > etc... > > AFAIK it's fully implemented. Do you see any problems with it? > > > ___ > Mono-devel-list mailing list > Mono-devel-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-devel-list > ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] System.Threading.Monitor.IsEntered? Will this be implemented?
Seems very straightforward to implement. If I were you I would just have a crack at it, and propose it as a pull request. It's the best way to get unblocked. On 10/12/13 00:50, vbguy81 wrote: > Hi, > I have a project in .NET 4.5 that utilizes Monitor.IsEntered to check if > there is still a lock on a particular reference. You can lock multiple times > by doing something like the following. > > Monitor.Enter(MyLock); > Monitor.Enter(MyLock); > //..Do something.. > Monitor.Exit(MyLock); > //there is still a lock. > > As a precaution, when an exception is thrown, I'll loop over MyLock with > Monitor.Exit until IsEnter() returns false. In some of my more complicated > Multi-threaded programs the reference and at times these can get locked > twice (Try to avoid this, but it happens). For me, using Monitor.IsEntered > is an easy way to make sure everything gets cleaned up. > > In Thread.cs, I found the following: > > #if NET_4_5 > [MonoTODO] > public static bool IsEntered (object obj) > { > throw new NotImplementedException (); > } > #endif > > Does anyone have a timeline when this might be implemented? > > Thanks, > Harry > > > > -- > View this message in context: > http://mono.1490590.n4.nabble.com/System-Threading-Monitor-IsEntered-Will-this-be-implemented-tp4661494.html > Sent from the Mono - Dev mailing list archive at Nabble.com. > ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] AppDomain Support
On 11/12/13 03:33, Christian Smith wrote: > I was wondering what the current status of AppDomain support is and what > the plans for this are? I.e. is it not implemented? 70% implemented etc... AFAIK it's fully implemented. Do you see any problems with it? ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list