ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » get() coredumps

Post new topic  Reply to topic
 get() coredumps « View previous topic :: View next topic » 
Author Message
gavs
PostPosted: Mon Jul 30, 2001 2:02 pm    Post subject: Reply with quote

Newbie

Joined: 29 Jul 2001
Posts: 1
Location: Bank Of New York

Hi:

I am using C++ libraries of MQ. I have further wrapped them in my classes.

Here is the code that coredumps. If you have suggestions, then please let me know.


0. classA::function A() {
1. ImqGetMessageOptions m_gmo;

2. m_gmo.setOptions(options);
3. m_gmo.setWaitInterval( MQWI_UNLIMITED );

4. m_mqmd.setMessageId();
5. m_mqmd.setCorrelationId();
6. m_mqmd.setFormat(MQFMT_STRING);
7. m_mqmd.clearMessage();
8. bool rc = get(m_gmo);
}

9. classA::get() {

}

The function get() above, simply does a queue.get(), and copies the retrieved data from the queue on a heap.

After the function returns from step 8. above, it coredumps. Printing stack, appears to be freeing memory from ImqGetMessageOptions object??

Please help.

Thanks




_________________
GAVS
Back to top
View user's profile Send private message
kolban
PostPosted: Mon Jul 30, 2001 2:17 pm    Post subject: Reply with quote

Grand Master

Joined: 22 May 2001
Posts: 1072
Location: Fort Worth, TX, USA

I think we are going to have to see the code withing the get() method in order to advise better. Would it be possible to post the actual code of the call and the class?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » get() coredumps
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.