¶1Melvin Aniton appeals from a judgment of conviction for possession of a controlled substance, cocaine, with intent to deliver. See §§ 161.16(2)(b)l and 161.41(l)(c)4, Stats. Aniton argues that his conviction must be reversed, and the complaint dismissed with prejudice, because he did not make an initial appearance and receive a finding of probable cause within forty-eight hours of being taken into custody after a warrantless arrest. Because Aniton pled guilty, we conclude that he waived his right to appellate review of these nonjurisdictional defects and we affirm his conviction.
¶2The police arrested Aniton without warrant on February 1, 1992, at the General Mitchell International Airport in Milwaukee with 250 grams of cocaine in his possession. The State filed a criminal complaint on February 4th. Aniton appeared personally and with counsel before Court Commissioner Harry Halloway
¶3*128Aniton argues that the State failed to secure his initial appearance "within a reasonable time," as required by § 970.01(1), STATS.
¶4*129A guilty plea, made knowingly and voluntarily, waives all nonjurisdictional defects and defenses, including alleged violations of constitutional rights prior to the plea. Mack v. State, 93 Wis. 2d 287, 293, 286 N.W.2d 563, 566 (1980). Thus, Aniton has waived any constitutional defects of which he complains. In contrast, the circuit court's subject-matter jurisdiction is derived from law, is not waivable and may be raised despite a guilty plea. Id.Therefore, if any of Aniton's alleged errors affected the trial court's jurisdiction over the subject matter, as Aniton asserts they do, his guilty plea would not affect his right to review of those issues.
¶5Criminal subject-matter jurisdiction is the "power of the court to inquire into the charged crime, to apply the applicable law and to declare the punishment." Id. at 294, 286 N.W.2d at 566. The circuit court's subject-matter jurisdiction attaches when the complaint is filed. See State v. Estrada, 63 Wis. 2d 476, 492, 217 N.W.2d 359, 367, cert. denied, 419 U.S. 1093 (1974). The circuit court lacks criminal subject-matter jurisdiction only where the complaint does not charge an offense known to law. See Mack, 93 Wis. 2d at 295, 286 N.W.2d at 567. Once criminal subject-matter jurisdiction attaches, it continues until a final disposition of *130the case. See State v. Asfoor, 75 Wis. 2d 411, 424, 249 N.W.2d 529, 534 (1977).
¶6The law is clear on the issue of criminal subject-matter jurisdiction. Aniton does not allege that the complaint failed to charge an offense. Aniton has failed to show how either of his alleged violations in any way prevented the trial court from obtaining criminal subject-matter jurisdiction or from retaining criminal subject-matter jurisdiction once it had attached with the filing of the complaint.
¶7By the Court. — Judgment affirmed.
¶8 The exact date on which Aniton made his initial appearance and received a probable cause'determination is unknown. The judgment docket entry on this point is unclear. Aniton and the State agree his initial appearance and probable cause determination were not within forty-eight hours of his arrest but were no later than February 6.
¶9 Section 970.01(1), STATS., provides, in part:
Initial appearance before a judge. (1) Any person who is arrested shall be taken within a reasonable time before a judge in the county in which the offense was alleged to have been committed.
¶10 To satisfy the requirements of the Fourth Amendment, a person in custody pursuant to a warrantless arrest must have the benefit of a judicial determination of probable cause within forty-eight hours of the arrest, absent a bona fide emergency or other extraordinary circumstances. County of Riverside v. McLaughlin, 500 U.S. 44, —, 111 S. Ct. 1661, 1669-71 (1991); State v. Koch, 175 Wis. 2d 684, 696-97, 499 N.W.2d 152, 159 (1993), cert. denied, 114 S. Ct. 221 (1993).
¶11 Although, due to our disposition of this case, we do not reach the issue of the appropriateness of the remedy requested by Aniton for the defects in question, we note the existence of authority which would indicate that dismissal with prejudice is not the appropriate sanction. See United States v. Crews, 445 U.S. 463, 474 (1980) (violation may warrant exclusion of evidence obtained as result of delay); Gerstein v. Pugh, 420 U.S. 103, 119 (1975) ("[A] conviction will not be vacated on the *129ground that the defendant was detained pending trial without a determination of probable cause."); State v. Koch, 175 Wis. 2d at 699, 499 N.W.2d at 160 (rejecting suppression of evidence as sanction where delay was not for purpose of gathering evidence); State v. Estrada, 63 Wis. 2d 476, 490, 217 N.W.2d 359, 367, cert. denied, 419 S. Ct. 1093 (1974) ("The law is well settled that any statement obtained from a defendant during a period of unreasonable detention is inadmissible in evidence.").
¶12 Aniton cites several cases that explore the circuit court's lack of power to act and loss of competency to exercise its jurisdiction. None of these cases involve criminal prosecutions, and all involve violations of specific statutory time limitations.