activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <tabish...@gmail.com>
Subject Re: What is the purpose of the countdownlatch? and a crash of my receiver
Date Fri, 01 Feb 2013 21:40:02 GMT
On Fri, 2013-02-01 at 13:20 -0800, jeffrey wrote:
> The program is broken down to simply 
> 
> activemq::library::ActiveMQCPP::initializeLibrary();
> HBconsumer *hbc = new HBconsumer(brokerURI, destURI, 3);  //This is my
> receiver class it                               implements public
> ExceptionListener, public MessageListener, public Runnable
> Thread HBthread(hbc); //
> HBthread.start();  //     If I take out these three lines and do not create
> a thread, my program does                       nothing, but does not crash
> when exiting
> HBthread.join();  // 
> sleep(3); //
> delete hbc;
> activemq::library::ActiveMQCPP::shutdownLibrary(); // If I take out this
> line and leave in the others, then it works fine
> return 0;
> 
> I am still on HPUX11.31 btw, Ill get more information when I have time
> 

Please create a new Jira and attach a complete source sample that
demonstrates the issue otherwise I can't test it.



> 
> 
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/What-is-the-purpose-of-the-countdownlatch-and-a-crash-of-my-receiver-tp4662651p4662660.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.

-- 
Tim Bish
Sr Software Engineer | RedHat Inc.
tim.bish@redhat.com | www.fusesource.com | www.redhat.com 
skype: tabish121 | twitter: @tabish121
blog: http://timbish.blogspot.com/



Mime
View raw message