G
Guest
Hi all:
I'm try to create a private message queue to communicate between my service
and any client that wants to display the data. Everything seems ok until I
try to send a message to the queue where the Send call blocks forever!!
Please help... here is my code:
m_queuePath = @".\Private$\myQueue";
// Start the Message queue
if (MessageQueue.Exists(m_queuePath))
m_msmq = new MessageQueue(m_queuePath);
else
m_msmq = MessageQueue.Create(m_queuePath,true);
// So far so good, the queue gets created... then
if (m_msmq != null)
{
Message m = new Message(new Object(),new BinaryMessageFormatter());
m_msmq.Send(m,"SomeObject",MessageQueueTransactionType.Single);// Blocks
}
I tried this with and without transactions with the same results.
Best regards,
Ed;;
I'm try to create a private message queue to communicate between my service
and any client that wants to display the data. Everything seems ok until I
try to send a message to the queue where the Send call blocks forever!!
Please help... here is my code:
m_queuePath = @".\Private$\myQueue";
// Start the Message queue
if (MessageQueue.Exists(m_queuePath))
m_msmq = new MessageQueue(m_queuePath);
else
m_msmq = MessageQueue.Create(m_queuePath,true);
// So far so good, the queue gets created... then
if (m_msmq != null)
{
Message m = new Message(new Object(),new BinaryMessageFormatter());
m_msmq.Send(m,"SomeObject",MessageQueueTransactionType.Single);// Blocks
}
I tried this with and without transactions with the same results.
Best regards,
Ed;;