Iam using ActiveMQ 4.1.1 and ActiveMQ-cpp-2.1.3  on Windows 2003 server
Enterprise Edition with VC++ 8.0.
      
      Iam sending persistent text messsage using Topic to a destination.
(wireFormat=openwire, transport.useAsyncSend=false, 
Session::AUTO_ACKNOWLEDGE, DeliveryMode::PERSISTENT ).
       
      ActiveMQ-cpp is able to send messages succcessfully to destination for
21184 messages. But for the next mesage is it giving the following exception
at a call to send() of producer.
       
      "Unhandeled exception at 0x7c82823e in myaplication.exe:
0xC0000005:Access violation writing location 0x00040ffc."
      
      And stopping the execution in free.c at "retval = HeapFree(_crtheap,
0, pBlock);". And when i checked the message contends it is valid only.

Sample Code:
                .
                .
                // Create a message
                TextMessage* message = session->createTextMessage( sendmessage 
);
                message->setIntProperty( "Integer", 0 );

                // Tell the producer to send the message
                producer->send( message );

                //indicate message sent
                msgdelivered = true;

                delete message;

      Please anybody have idea what is the problem is.......


Thanks,
Naresh

    
 









-- 
View this message in context: 
http://www.nabble.com/Unhandeled-exception-when-producer-sending-message-in-free.c-at-HeapFree-after-sending-large-ammount-of-messages-tp16349020s2354p16349020.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to