activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alanchb <alanchbm...@gmail.com>
Subject Apache.NMS.ActiveMQ.dll throw MissingMethodException:Boolean System.Threading.WaitHandle.WaitOne(System.TimeSpan)
Date Fri, 07 May 2010 02:40:23 GMT

the dll i use is from Apache.NMS.ActiveMQ-1.2.0-bin
i has tried .net-2.0 and .net-3.5 version,it seems the problem has nothing
to do with the version.

the missing method: Boolean
System.Threading.WaitHandle.WaitOne(System.TimeSpan)
the declaration of the method in C#:public virtual bool WaitOne(TimeSpan
timeout,bool exitContext)

found below code in Apache.NMS.ActiveMQ source package(InactivityMonitor.cs)

        private void StopMonitorThreads()
        {
            lock(monitor)
            {
                if(monitorStarted.CompareAndSet(true, false))
                {
                    AutoResetEvent shutdownEvent = new
AutoResetEvent(false);

                    // Attempt to wait for the Timers to shutdown, but don't
wait
                    // forever, if they don't shutdown after two seconds,
just quit.
                    this.readCheckTimer.Dispose(shutdownEvent);
                    shutdownEvent.WaitOne(TimeSpan.FromMilliseconds(2000));
                    this.writeCheckTimer.Dispose(shutdownEvent);
                    shutdownEvent.WaitOne(TimeSpan.FromMilliseconds(2000));

					this.asyncTasks.Shutdown();
                    this.asyncTasks = null;
                    this.asyncWriteTask = null;
                    this.asyncErrorTask = null;
                }
            }
        }


pls have a look at this,if it is a bug pls fix it ASAP,thanks!

-- 
View this message in context: http://old.nabble.com/Apache.NMS.ActiveMQ.dll-throw-MissingMethodException%3ABoolean-System.Threading.WaitHandle.WaitOne%28System.TimeSpan%29-tp28481600p28481600.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message