codeblocks uses this strategy to save a file:
1) create a temp file and save the content
2) copy the temp file over the actual file
3) remove the temp file
This is the most save strategy to save files. Dropbox can make a lot conflicts with this strategy:
in step 2) block the actual file from the copy, because it is indexing
in step 3) block the temp file from deleting, because of indexing
i am not sure, but i think there is a setting to configure the save strategy somewhere in the settings. you can try to modify this.
But i don't see any way to fix this beside stepping away from the current good saving strategy... Does dropbox has a ignore file? You can try to add the temp file to the ignore file list....