Ayende @ Rahien

Hi!
My name is Oren Eini
Founder of Hibernating Rhinos LTD and RavenDB.
You can reach me by phone or email:

ayende@ayende.com

+972 52-548-6969

, @ Q c

Posts: 10 | Comments: 37

filter by tags archive

Comments

Kim
Kim

With identical code I get

test_queue2

CompletedSynchronously: False

IsCompleted: False

Wait completed : False

test_queue

CompletedSynchronously: False

IsCompleted: False

Wait completed : False

Kim
Kim

sorry, missed to the comment about "messages in queue2". Too late... Same result as you.

configurator

Erm, according to MSDN,

BeginPeek() Initiates an asynchronous peek operation that has no time-out. The operation is not complete until a message becomes available in the queue.

So when there are no messages, the peek would never complete. What am I missing?

Anon

It's not good practice to reuse an object after it's disposed, right? I'm sure examples like this exist all over the BCL; especially cases where one is using BeginXXX after disposal.

Michael McDaniel

I also had weird problems with MSMQ, but the problems only happened when I was using the async functions/events. I found them to be pretty unreliable - especially when failures occured. Things would just stop working - no reason, no exception, the thread would simply die. It was so inconsistent, that I ended up just polling on my own threads.

Comment preview

Comments have been closed on this topic.

FUTURE POSTS

  1. Production postmortem: The case of the memory eater and high load - about one day from now
  2. Production postmortem: The case of the lying configuration file - 2 days from now
  3. Production postmortem: The industry at large - 3 days from now
  4. The insidious cost of allocations - 4 days from now
  5. Find the bug: The concurrent memory buster - 5 days from now

And 4 more posts are pending...

There are posts all the way to Sep 10, 2015

RECENT SERIES

  1. Find the bug (5):
    20 Apr 2011 - Why do I get a Null Reference Exception?
  2. Production postmortem (10):
    14 Aug 2015 - The case of the man in the middle
  3. What is new in RavenDB 3.5 (7):
    12 Aug 2015 - Monitoring support
  4. Career planning (6):
    24 Jul 2015 - The immortal choices aren't
View all series

Syndication

Main feed Feed Stats
Comments feed   Comments Feed Stats