RATIONALE: Oxandrolone and megestrol may help prevent weight loss and improve quality of life in patients with cancer. It is not yet known whether oxandrolone is more effective than megestrol in preventing weight loss and improving quality of life in patients who are receiving chemotherapy for solid tumors.