[
https://issues.apache.org/jira/browse/AMQCPP-474?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13623506#comment-13623506
]
Timothy Bish commented on AMQCPP-474:
-------------------------------------
recommend you create a test case for this to protect it into the future
> On closing a connection, ActiveMQ raises the exception: StlMap modified
> outside this iterator
> ---------------------------------------------------------------------------------------------
>
> Key: AMQCPP-474
> URL: https://issues.apache.org/jira/browse/AMQCPP-474
> Project: ActiveMQ C++ Client
> Issue Type: Bug
> Components: CMS Impl
> Affects Versions: 3.6.0
> Environment: Windows 7 32 bits
> Reporter: Daniel Laügt
> Assignee: Timothy Bish
> Attachments: ActiveMQConnection.cpp.patch
>
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> By closing the connection, activeMQ iterates on config.activeTempDestinations
> to close the active temporary destinations. The method
> ActiveMQTempDestination.close() removes the destination from
> config.activeTempDestinations. So the iterator is invalid for the next
> iterations.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira