
104 S.E.2d 861 (1958)
248 N.C. 710
Clyde O'Neal GILLIKIN, by his Next Friend, Lola Gillikin,
v.
Richard GILLIKIN.
No. 92.
Supreme Court of North Carolina.
September 17, 1958.
*862 Jones, Reed & Griffin, Kinston, for plaintiff, appellant.
R. E. Whitehurst, New Bern, and C. R. Wheatly, Jr., Beaufort, for defendant, appellee.
BOBBITT, Justice.
"A plea in bar is one that denies the plaintiff's right to maintain the action, and which, if established, will destroy the action." Mcintosh, N. C. Practice and Procedure, Sec. 523; Murchison Nat. Bank v. Evans, 191 N.C. 535, 132 S.E. 563.
If the alleged compromise and settlement is established, plaintiff's action is barred; but, it should be noted, defendant pleads in bar a consummated compromise and settlement.
Ordinarily, it is for the trial judge, in the exercise of his discretion, to determine whether in the circumstances of a particular case a plea in bar is to be disposed *863 of prior to trial on the merits of plaintiff's alleged cause of action. Mc-Auley v. Sloan, 173 N.C. 80, 91 S.E. 701; DeLoache v. DeLoache, 189 N.C. 394, 127 S.E. 419; Bright v. Hood, 214 N.C. 410, 419, 199 S.E. 630, 119 A.L.R. 820.
The only question now presented for decision is whether the judgment of dismissal was warranted by what appears on the face of the proceeding in which the judgment of January 27, 1955, was entered.
Oates v. Texas Co., 203 N.C. 474, 166 S.E. 317, and cases therein cited, to which appellee calls attention, relate to compromise judgments entered in settlement of a minor's pending civil action. In such case, the court adjudges that the party plaintiff recover a specified amount from the party defendant.
Unlike Oates v. Texas Co., supra, and similar cases, the judgment of January 27, 1955, was not entered in a civil action, that is, "an ordinary proceeding in a court of justice, by which a party prosecutes another party for the enforcement or protection of a right" or for "the redress or prevention of a wrong." G.S. § 1-2; G.S. § 1-6. It was entered in an ex parte special proceeding. G.S. § 1-3. Defendant was not a party thereto. The judgment of January 27, 1955, does not purport to be a judgment against defendant.
In his petition in the special proceeding, petitioner set forth reasons why "it would be well for him to accept the proposed settlement," and prayed "that judgment enter authorizing settlement of his claim on the basis of $7,000 over-all payment." The judgment of January 27, 1955, purports to confer authority for the proposed settlement. But, until it is first established that a compromise and settlement has been consummated in accordance with the provisions of the judgment of January 27, 1955, we do not reach questions relating to the validity of the judgment or to the legal procedure by which it may be attacked.
It follows that the judgment, standing alone, whatever its validity and however it may be attacked, does not constitute an estoppel. To establish his plea in bar, defendant must show a legally authorized and consummated compromise and settlement. Defendant's plea in bar, whether considered as a plea of estoppel by compromise and settlement, Winkler v. Appalachian Amusement Co., 238 N.C. 589, 598, 79 S.E. 2d 185, or as a plea of res judicata, Reid v. Holden, 242 N.C. 408, 411, 88 S.E.2d 125, or a combination of both, is an affirmative defense. Hence, it is incumbent upon defendant to establish all facts necessary to support such plea.
True, defendant alleged that, subsequent to the entry of the judgment, he paid $7,000 into the office of the clerk of the superior court. But, in the hearing on defendant's motion to dismiss, defendant offered no evidence. Moreover, the record contains no stipulation or admission relating to what, if anything, transpired in relation to the consummation of the alleged compromise and settlement; and the court, in the judgment dismissing the action, made no findings of fact relative to these material matters.
It is noted that the special proceeding contains a supplemental order, bearing the same date as the judgment, providing for the payment of various items "from the aforesaid compromise settlement of $7,000 set out in the Judgment in this cause." Neither the judgment nor the supplemental order specifies who is to pay or who is to receive the said $7,000. The supplemental order does provide that, after the specified disbursements have been made, the balance is to be deposited in the office of the clerk "to the credit and for the use and benefit of the infant, Clyde O'Neal Gillikin, until such time as guardian may be appointed to take over said funds and otherwise represent the interest of the ward as by law provided and under statutes controlling."
Upon the present record, no decision is made or opinion expressed as to the validity *864 of the judgment of January 27, 1955, or as to the legal procedure by which it may be attacked.
Upon the facts then before the court, as disclosed by the record before us, the judgment dismissing plaintiff's action was erroneous and should be vacated. It is so ordered.
Error and remanded.
PARKER, J., took no part in the consideration or decision of this case.
