correct:>

On Fri, Oct 28, 2011 at 7:47 AM, andrea simeoni
<andreasimeon...@gmail.com>wrote:

> Hi guys,
>
> I solved the problem by adding the line:
>
> *register_event(Observation_event::static_get_name());*
>
> In the configuration method of the component that generates the event.
>
>
> 2011/10/28 andrea simeoni <andreasimeon...@gmail.com>
>
>> Hi guys,
>>
>> I've created a custom event in my NOX environment: "Observation_event".
>> I'm able to compile my code, and I'm able to post the event; but if I need
>> to handle the event, when launching NOX I got the following error:
>> *
>> |nox|ERR:Cannot change the state of 'MyComp' to INSTALLED:
>> 'MyComp' ran into an error:
>>     Event 'Observation_event' doesn't exist.*
>>
>> Where MyComp is the component that needs to handle the event. The code in
>> its configuration function is the following:
>>
>>  void MyComp::configure(const Configuration* c)
>>   {
>>     lg.dbg(" Configure called ");
>>
>>      register_handler<Observation_event>
>>       (boost::bind(&MioComp::handle_observation_event, this, _1));
>>   }
>>
>>
>> I tried also to add the event in the nox/src/etc/nox.json, including also
>> the name of MyComp in the priority list, but the outcome is the same.
>> Any suggestions? I'm forgetting some step?
>>
>> Thank you
>>
>>
>>
>>
>> --
>> Andrea Simeoni
>>
>
>
>
> --
> Andrea Simeoni
>
> _______________________________________________
> nox-dev mailing list
> nox-dev@noxrepo.org
> http://noxrepo.org/mailman/listinfo/nox-dev
>
>
_______________________________________________
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev

Reply via email to