473,657 Members | 2,451 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

EndPeek throwing MessageQueueExc eption with MessageQueueErr orCode set to -1073741536

Hi,
Would appreciate any help you guys have to offer. On calling beginPeek on
instantiation of a MessageQueue, EndPeek throws a MessageQueueExc eption. If
the queue exists already, the exception is not thrown, but when I just
create the queue and call BeginPeek, the exception is thrown on calling
EndPeek. The MessageQueueErr orCode of the exception has the
value -1073741536. I've tried matching this up with a defined
MessageQueueErr orCode, but there's no match. Also, the message string of the
exception is blank. Any ideas?

//begin code
if(!MessageQueu e.Exists(_messa geQueuePath)) {
MessageQueue tempMQ = MessageQueue.Cr eate(_messageQu euePath, true);
tempMQ.SetPermi ssions(_windows SecurityAccount ,
MessageQueueAcc essRights.FullC ontrol);
}
_myQueue = new MessageQueue(_m essageQueuePath );
_myQueue.Format ter = new BinaryMessageFo rmatter();
_myQueue.PeekCo mpleted += new
PeekCompletedEv entHandler(m_my Queue_PeekCompl eted);
_myQueue.BeginP eek();
//end code

Thank you.
Craig
Nov 17 '05 #1
0 1710

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1510
by: SK | last post by:
What is the purpose of throwing exceptions in catch block. Bcos the exception is already thrown only, it is coming to the catch block.What is the purpose of throwing it again then!!!.....Help
5
4667
by: Mark Oueis | last post by:
I've been struggling with this question for a while. What is better design? To design functions to return error codes when an error occures, or to have them throw exceptions. If you chose the former, i have a few questions that need to be answered. 1) What about functions that need to return a value regardless of the error. How can they also return an error code unless the function has "output" parameters. This seems messy and...
21
4415
by: mihai | last post by:
People say that is a bad technique to throw exception from constructors; and that the solution would be to create a function _create_ to initialize an object. What about copy constructors? How can we avoid throwing exceptions? If we already have an abject witch was initialized wit _create_ we will be forced to call create in copy constructor and to throw exceptions from it. Have a nice day,
2
7457
by: Tony Hamill | last post by:
Hi, I am trying to set up a VERY simple project to send message to MSMQ from ..Net using C#. When I run my code it throws an exception "An unhandled exception of type 'System.Messaging.MessageQueueException' occurred in system.messaging.dll" I can only find one other link from Google ( http://www.dotnet247.com/247referen...s/14/73719.aspx )where this has occured. Can someone help me out here. I find it hard to believe that apart
1
1663
by: Farooq Khan | last post by:
i'm writing a class library having following code snippet. i want this class to report an error (by throwing an Exception) to the application using this class library. the problem is that within that try block there are several exceptions that this class itself needs to handle (interrnally). now when the exception, UserAlreadyRegistered, is thrown the class' catch block (within library) catches it and no exception is thrown to the...
1
8006
by: Andrew Hayes | last post by:
Hi All I've got some code that enumerates the public message queues on various remote servers and I've run into a snag.. First, here's a code snippet that is mostly working MessageQueue qList = MessageQueue.GetPublicQueuesByMachine( mName ) foreach(MessageQueue queueItem in qList
40
13511
by: Kevin Yu | last post by:
is it a bad programming design to throw exception in the try block then catch it??
2
2726
by: Craig | last post by:
Hi, Would appreciate any help you guys have to offer. On calling beginPeek on instantiation of a MessageQueue, EndPeek throws a MessageQueueException. If the queue exists already, the exception is not thrown, but when I just create the queue and call BeginPeek, the exception is thrown. Any ideas? //begin code if(!MessageQueue.Exists(_messageQueuePath)) { MessageQueue tempMQ = MessageQueue.Create(_messageQueuePath, true);...
1
4218
by: dedipya | last post by:
Environment W2003K with Oracle 10 client connected to oracle using oracle odp provider.orcle is on solaries machine. while filling the dataset .net is throughing the error "argument was out of the range of valid values". we are getting error when trying to fill the dataset with more than 16 columns. if any date column is avaible in retrivels then fill dataset method is throwing the bellow error. Parameter name: Year, Month, and Day...
21
1707
by: Chris M. Thomasson | last post by:
Is it every appropriate to throw in a dtor? I am thinking about a simple example of a wrapper around a POSIX file... ________________________________________________________________________ class file { FILE* m_handle; public: // ; ~file() /* throw() */ {
0
8726
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8503
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8603
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7320
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6163
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1944
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1604
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.