× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



mq_setOptions(MQPUT_OPTIONS);


At which line do you receive an error? I would expect it to be in the
MQ_OPEN, which you do not supply, and should be executed in front of
mq_setOptions(). We also cannot see from here what your MQP_OPTIONS values
are, nor much else of importance. (Did you connect? How did you connect?
What is the queue name? et cetera)

I am used to the functions that are a product of the #include "cmqc.h"
directive, and these include such functions as MQCONN, MQOPEN, MQPUT, et
cetera, rather than names like mq_setOptions(). I am also used to seeing
tests for success/failure, which appear to be lacking in the supplied
source.

I could probably get past the difference in function names, but what I see
here - sorry - is not enough detail. So I will suggest that you add an
error test after *every* MQ call (religiously) and determine the cause for
failure at the point of failure. Possibly what's happening here is that the
CONN failed (or the OPEN) but you didn't know it... then you tried to use
the resultant handle, and that usage failed. But that is a wild guess.

Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
--
"I shall make electricity so cheap that only the rich can afford to burn
candles."
-- Thomas Edison


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.