The only bluescreens that I've ever seen in my life were due to incompatible hardware (PC built by expert PC builders, with RAM not supported by the motherboard), and when switching the BIOS to AHCI without enabling AHCI in Windows first.
Code::Blocks doesn't do anything that might possibly cause a bluescreen under normal conditions.
@cellulose: Sending two termination requests (which Code::Blocks doesn't do) is a legitimate thing to do, which must work reliably (and does work reliably) on a non-broken computer.