If the bleeding is caused by cancer, then surgery is needed to treat the cancer and stop the bleeding.