The exit means or passageway 32 may optionally be closed by an erodible material 52 such as, for example, microscrystalline wax or gelatin, for protecting the active agent formulation prior to placing in the stomach environment, or there may optionally be present a retaining structure such as a screen or mesh for retaining the dosage forms within the device until they are dispensed into the enviro