While the drip lines impose the ultimate boundaries for nucleosynthesis, in high-energy environments the burning pathway may be limited before the drip lines are reached by photodisintegration, where a high-energy gamma ray knocks a nucleon out of a nucleus. The same nucleus is subject both to a flux of nucleons and photons, so an equilibrium between neutron capture and photodisintegration is reached for nuclides with a sufficiently low neutron separation energy, particularly those near waiting points.