activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From narts <>
Subject Unhandeled exception when producer sending message in free.c at HeapFree after sending large ammount of messages
Date Fri, 28 Mar 2008 10:38:28 GMT

      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, 
      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.......



View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message