Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8A49CDA78 for ; Fri, 1 Feb 2013 21:40:32 +0000 (UTC) Received: (qmail 24991 invoked by uid 500); 1 Feb 2013 21:40:32 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 24955 invoked by uid 500); 1 Feb 2013 21:40:32 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 24947 invoked by uid 99); 1 Feb 2013 21:40:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2013 21:40:32 +0000 X-ASF-Spam-Status: No, hits=0.9 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tabish121@gmail.com designates 209.85.216.171 as permitted sender) Received: from [209.85.216.171] (HELO mail-qc0-f171.google.com) (209.85.216.171) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2013 21:40:25 +0000 Received: by mail-qc0-f171.google.com with SMTP id d1so1987254qca.30 for ; Fri, 01 Feb 2013 13:40:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:subject:from:to:date:in-reply-to:references :content-type:x-mailer:mime-version:content-transfer-encoding; bh=wowehiOzRLo8Ts9inqZXaHE9AHYzCe9DtxrjSJCWOg4=; b=Adw4p3MoSycoT+rKvxsByVVMhvk8lW2zoXrW2Qfs7kyO0Skb64B83wylqF0TNPKY0i gyhdQzqZPQrCACYZAKbhGrkU/YRPi+0EmLXyphz9W6vtnH5OeivccNPg/m9+Wyy6GMMD kMbsQDZX6efDAQGuE3QWJngnTtPZlxUteqX6Haw0u1AjoyqSUKMhdN3i1WOAiRPyd3K6 pb/RhLM700IMB81rGE3WLZT1KbuGuRZ+OpWoe6MHeGMR9arkecAwoxUgL1ZkYPx4g/Y4 Al6c8hVWNa7plEakwFD5C75jAGqxhsEbeGuGPE9TVbpqMLjtAHGgnJSNRPQZYzn8Wyx1 UkdQ== X-Received: by 10.229.76.138 with SMTP id c10mr3378713qck.96.1359754804633; Fri, 01 Feb 2013 13:40:04 -0800 (PST) Received: from [192.168.2.150] (c-98-231-181-148.hsd1.va.comcast.net. [98.231.181.148]) by mx.google.com with ESMTPS id f7sm8220484qap.13.2013.02.01.13.40.03 (version=SSLv3 cipher=RC4-SHA bits=128/128); Fri, 01 Feb 2013 13:40:04 -0800 (PST) Message-ID: <1359754802.2632.2.camel@OfficePC> Subject: Re: What is the purpose of the countdownlatch? and a crash of my receiver From: Timothy Bish To: users@activemq.apache.org Date: Fri, 01 Feb 2013 16:40:02 -0500 In-Reply-To: <1359753654477-4662660.post@n4.nabble.com> References: <1359745889291-4662651.post@n4.nabble.com> <1359746872.2632.0.camel@OfficePC> <1359753654477-4662660.post@n4.nabble.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.6.2-0ubuntu0.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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/