Jason Meckley
unread,Oct 9, 2009, 2:40:12 PM10/9/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Rhino Tools Dev
System.ArgumentOutOfRangeException: Number must be either non-negative
and less than or equal to Int32.MaxValue or -1.
Parameter name: timeout
at System.Threading.Monitor.Wait(Object obj, TimeSpan timeout)
at Rhino.Queues.QueueManager.Receive(String queueName, String
subqueue, TimeSpan timeout) in QueueManager.cs: line 369
at Rhino.Queues.QueueManager.Receive(String queueName, TimeSpan
timeout) in QueueManager.cs: line 343
at Rhino.ServiceBus.RhinoQueues.RhinoQueuesTransport.ReceiveMessage()
in ....\Rhino.ServiceBus\RhinoQueues\RhinoQueuesTransport.cs: line 153
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
This happens, inconsistantly, in our production environment. I cannot
reproduce this in a test environment though. reviewing the
QueueManager.Recieve member it would seem the error occurs because as
some point line 331
(remaining = remaining - sp.Elapsed;) makes remaining negative.
At which point the system crashes, and the error is recorded to the
event log. Once I find out the service stopped. I log on, restart the
service, and the messages filter through.
Any ideas on what may be causing negative time?
the