It's still strange for me, but your program - your architecture.
There are "real" problem:
Code::Blocks freeze not only on "Activate Project" command, also on "Rebuild Workspace", also on "Rebuild" - that is more important.
Platform: Win 7 x64 Home Premium.
I'm trying to fix the problem, any ideas??