 Chamberlayne's death caused a by-election.The election was declared void on petition on 6 May 1842, due to bribery by Bruce and Martyn's agents, and a writ for a by-election was not moved until 1 August 1842.Cockburn was appointed Solicitor General for England and Wales, requiring a by-election.