As the primary election nears, the gloves came off Thursday evening at a forum for the race for Brooklyn district attorney.

Candidates and some members of the audience went on the offensive against Acting District Attorney Eric Gonzalez over his office’s record of wrongful convictions and his handling of cases largely while working under former District Attorney Charles Hynes.