activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From patlap <patrick-lapla...@hotmail.com>
Subject The synchronous receive memory link
Date Fri, 29 Nov 2013 19:18:09 GMT
Hello, 

I use the CMSTemplateReceiver.cpp example provided with active MQ. This
class implement a simple synchronous receiver. (no onMessage Listener
registered) 

BytesMessage* cmsMessage = (BytesMessage*)cmsTemplate->receive();
if( cmsMessage ) {
    printf( "%s received a message\n", cmsMessage->getBodyBytes() );
    delete cmsMessage;
}

Each time the cmsMessage is deleted, the process always take more memory. 

The only difference with the example provided with activeMQ is I use a
BytesMessage instead of a TextMessage.

Thanks for help



--
View this message in context: http://activemq.2283324.n4.nabble.com/The-synchronous-receive-memory-link-tp4674959.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message