Some problems in gamma and X-ray astronomy