check you are not linking any thirdparty debug specific library in release i.e. using msvcrtd.lib in release or msvcrt.lib in debug etc...