Thanks Rene! Actually I've looked at the source already, but wasn't sure if it was a bug that the SubQueueStrategy just calls Send directly on the OpenedQueue! Also didn't realize that we were using the SubQueueStrategy automatically when switching to Win7... I will look into the TryMoveMessage workaround tomorrow!!
Hope you are doing well at Kampstrup - And not submitted to to much "HG-poisoning" :) ! - Morten On 21 Jun., 20:26, René M. Andersen <[email protected]> wrote: > Hi Morten, > > How are you and the other guys doing? > > On Win7 you don't use the FlatQueueStrategy, but the SubQueueStrategy, since > Win7 uses MSMQ 4.0 which supports sub queues. > Not sure if your problem is caused by an error in the > SubQueueStrategy.SendToErrorQueue method, but it seems to behave differently > than the one in the FlatQueueStrategy used on WinXP. Try Comparing the > following code: > > SubQueueStrategy.cs: > public void SendToErrorQueue(OpenedQueue queue, Message message) > { > queue.Send(message); > > } > > FlatQueueStrategy.cs > public void SendToErrorQueue(OpenedQueue queue, Message message) > { > using(var errQueue = new MessageQueue(GetErrorsQueuePath())) > { > // here we assume that the queue transactionalibilty is the same for the > error sibling queue > // and the main queue! > errQueue.Send(message, queue.GetSingleTransactionType()); > } > > } > > It seems that the implementation doesn't take the error queue into account? > > As a work around, try using the below method instead: > queueStrategy.TryMoveMessage(queue, message, SubQueue.Errors,out msgId) > > Anyone has an idea, whether this is a bug? > > Say hi to everyone from me :) > > Regards > René -- You received this message because you are subscribed to the Google Groups "Rhino Tools Dev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rhino-tools-dev?hl=en.
