[statechart] context<>() assert failed in destructor function in VC8.0
I wrote a simple code.
source file:
#include
I have solve the problem.
I missing terminate function.
Modify source file
int main(int argc, char* argv[])
{
Human human;
human.initiate();
+ human.terminate();
return 0;
}
----- Original Message -----
From: Jiang Miao
Newsgroups: gmane.comp.lib.boost.user
To: boost-users@lists.boost.org
Sent: Tuesday, July 24, 2007 4:04 PM
Subject: [statechart] context<>() assert failed in destructorfunction in VC8.0
I wrote a simple code.
source file:
#include
Hi Jiang
I have solve the problem. I missing terminate function. Modify source file int main(int argc, char* argv[]) { Human human; human.initiate();+ human.terminate(); return 0; }
Exactly, the problem arised because you tried to access the state_machine<> subclass portion at a point where it had already had its destructor executed. I will update the documentation accordingly. Thanks & Regards, -- Andreas Huber When replying by private email, please remove the words spam and trap from the address shown in the header.
participants (3)
-
Andreas Huber
-
Jiang Miao
-
JiangMiao