PURPOSE: This randomized phase III trial is studying oxandrolone to see how well it works compared to megestrol in preventing weight loss and improving quality of life in patients who are receiving chemotherapy for solid tumors.