This discussion clarifies the timing for filing a discharge petition under Section 239 of the Criminal Procedure Code (CrPC). Generally, a discharge petition should be filed before charges are framed. While Section 239 allows for discharge if the charge is deemed groundless after considering evidence and hearing both sides, it's typically considered at an earlier stage.