Esophageal Varices: Bleeding esophageal varices is a condition that may cause melena, hematemesis, or even both simultaneously. Stomach Ulcer: The bleeding is usually slow in this condition which is why it rarely manifests in the form of vomiting. The stored blood mostly leaves the body in the form of black stools.