Community

Mutex error being thrown

I am getting the following error in my application.
mono_os_mutex_trylock: pthread_mutex_trylock failed with “Error code ‘142’” (142)

I assume that this has to do with trying to instantiate something that has been set to immutable, but I have found nothing on the internet to explain this.

Thanks in advance,
Woody

wlathbury, can you share some code?

I had the same problem, I get this error when I use dynamic instead of object.

For instance:
This one works fine.

        public void GetObj(object Obj)
        {
            Console.WriteLine(Obj);
        }

But this one gives me that error.

        public void GetObj(dynamic Obj)
        {
            Console.WriteLine(Obj);
        }