Do you know how to catch a more complex debug message from CodeBlocks?
Can you start the C::B from debugger(I mean debug C::B under C::B), and if it crashed, you can see a full call stack about every thread.
From what I see in your call-stack
codeblocks.exe caused an Access Violation at location bc68551c Reading from location bc68551c.
Registers:
eax=bc68551c ebx=00000d88 ecx=071398a8 edx=00000000 esi=071398a8 edi=00000d88
eip=bc68551c esp=0022f548 ebp=0022f9c4 iopl=0         nv up ei pl nz ac po nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00010216
....
I can not guess any thing related to CC.  

I think it is better you can share us a test project, so we can test it on our system.
BTW: you say "Notepad" means Editor window of C::B?