Lenses in optical devices are kept in place by adhesives. This can cause problems when the microscopes and cameras are employed inside a vacuum, as the adhesives may release gases that contaminate the lenses. One alternative is to solder them instead.