I keep getting a segment fault when trying to start httpd.exe using QProcess. Is there any way to start httpd.exe, and control it like xampp does?

this is the code I’m using:

Qt Code:
  1. //start httpd
  2. httpd->start("C:/xampp/apache/bin/httpd.exe");
  3. httpd->waitForStarted();
  4.  
  5. //change button text
  6. ui->apacheStartBtn->setText(tr("Stop"));
To copy to clipboard, switch view to plain text mode