Hi,
I have taken a look and I confirm it is really strange...
I have added some printf in GetTimestamp
Breakpoint 1, ActionHandler::ExecActions (this=0x86ffa70) at
include/action_handler.cpp:603
603 if (a->GetTimestamp() > Time::GetInstance()->Read()) {
(gdb) print a->GetTimestamp()
this: 86c3cc0, timestamp:0
type: 13
$21 = 0
(gdb) print queue.front()->GetTimestamp()
this: 8700cd0, timestamp:0
type: 5169
$22 = 0
(gdb) print a
$23 = (Action *) 0x86c3cc0
(gdb) print queue.front()
$24 = (Action *&) @0x86192e0: 0x86c3cc0
(gdb) print *a
$25 = {var = {<std::_List_base<unsigned int,std::allocator<unsigned int>
>> = {
_M_impl = {<std::allocator<std::_List_node<unsigned int> >> =
{<__gnu_cxx::new_allocator<std::_List_node<unsigned int> >> = {<No data
fields>}, <No data fields>}, _M_node = {_M_next = 0x8700cd0, _M_prev =
0x86192c8}}}, <No data fields>}, creator = 0x85d1998, m_type =
Action::ACTION_MENU_ADD_TEAM,
m_timestamp = 0}
(gdb) print *queue.front()
$26 = {var = {<std::_List_base<unsigned int,std::allocator<unsigned int>
>> = {
_M_impl = {<std::allocator<std::_List_node<unsigned int> >> =
{<__gnu_cxx::new_allocator<std::_List_node<unsigned int> >> = {<No data
fields>}, <No data fields>}, _M_node = {_M_next = 0x8700cd0, _M_prev =
0x86192c8}}}, <No data fields>}, creator = 0x85d1998, m_type =
Action::ACTION_MENU_ADD_TEAM,
m_timestamp = 0}
Matt (gentildemon)
Laurent Defert a écrit :
> Hi!
>
>
>
>> The worst is that print queue.front()->m_timestamp returns the correct
>> value 0 and that queue.front()->GetTimestamp is really pointing to an
>> Action method.
>>
>>
> I have a workaround :
>
> Action* b = queue.front();
> b->GetTimestamp(); // returns the correct value
>
> But, it woul be real shame to apply it, as I fear it'll hide a serious bug.
>
> Lodesi
>
> _______________________________________________
> Wormux-dev mailing list
> [email protected]
> https://mail.gna.org/listinfo/wormux-dev
>
>
>
_______________________________________________
Wormux-dev mailing list
[email protected]
https://mail.gna.org/listinfo/wormux-dev