|
Boost Users : |
Subject: Re: [Boost-users] [boost-users][StateChart] event creation/destruction
From: Andreas Huber (ahd6974-spamboostorgtrap_at_[hidden])
Date: 2009-02-25 07:56:58
"Igor R" <boost.lists_at_[hidden]> wrote in message
news:cfe0a3cf0902250425k37e07743wdf2078d6c1212e16_at_mail.gmail.com...
[snip]
> When I run the application, I see that at some stage the counter goes
> negative, and its tendency is to get more and more negative.
> I guess I don't realize something important about the sc::event, so
> I'd appreciate enlightment on this.
Under certain circumstances events need to be copied internally, so you
should increment the counter in the copy ctor.
HTH,
-- Andreas Huber When replying by private email, please remove the words spam and trap from the address shown in the header.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net