WINDOWS - added complete error handling for ccWindowCreate