ravi shankar, that section 239 CrPc is attracted when the charge sheet is filed under 173 of the Code and after hearing the prosecution and the accused if the Magistrate is satisfied that the chare against the accused is groundless, the Magistrate will discharge the accused. Section 239 of the code operateswhen no primafacie case is made out against the accused or specefic alegations is not made out against the accused ion the complaint. Your question is discharge under 239 of the code when no chargwe sheet/final report has been filed, and experts has rightly answered your query.