Thoresby, Charles, active 1812-1860, Captain