You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Andrei Gheorghe (JIRA)" <ji...@apache.org> on 2013/06/20 09:05:20 UTC

[jira] [Comment Edited] (AMQCPP-494) Commiting a session with a deleted consumer causes access violation

    [ https://issues.apache.org/jira/browse/AMQCPP-494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13688923#comment-13688923 ] 

Andrei Gheorghe edited comment on AMQCPP-494 at 6/20/13 7:05 AM:
-----------------------------------------------------------------

Apparently I've uploaded a different test file. This one works for me also. If I just call close() on the consumer there is no problem. But if I delete consumer then I get an access violation on session->commit(). Is this still a bug or it's something by design, maybe consumers aren't meant to be deleted like this?

I've looked at your test and the issue can be reproduced by doing a consumer.reset() before session->commit().
                
      was (Author: andreigheorghe165):
    Apparently I've uploaded a different test file. This one works for me also. If I just call close() on the consumer there is no problem. But if I delete consumer then I get an access violation on session->commit(). Is this still a bug or it's something by design, maybe consumers aren't meant to be deleted like this?
                  
> Commiting a session with a deleted consumer causes access violation
> -------------------------------------------------------------------
>
>                 Key: AMQCPP-494
>                 URL: https://issues.apache.org/jira/browse/AMQCPP-494
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>    Affects Versions: 3.7.0
>            Reporter: Andrei Gheorghe
>            Assignee: Timothy Bish
>            Priority: Minor
>         Attachments: test.cpp
>
>
> I'm not sure if this is a bug or if I'm using the library wrong.
> The attached test file will cause an access violation error when trying to commit the session.

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