Timothy Bish wrote:
> 
> On Thu, 2010-05-06 at 19:40 -0700, alanchb wrote:
>> 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!
>> 
> 
> What OS are you running this on?
> 
> Regards
> Tim.
> 
> 
> -- 
> Tim Bish
> 
> Open Source Integration: http://fusesource.com
> ActiveMQ in Action: http://www.manning.com/snyder/
> 
> Follow me on Twitter: http://twitter.com/tabish121
> My Blog: http://timbish.blogspot.com/
> 
> 
> 

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

Reply via email to