Charles Thomas Longley, 1794-1868