Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. Problem with launching an executable & ATI
QtWS25 Last Chance

Problem with launching an executable & ATI

Scheduled Pinned Locked Moved Game Development
3 Posts 2 Posters 1.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    deStrO.BE
    wrote on last edited by
    #1

    Hello,

    I have a strange problem with launching a game and the function startDetached.

    @
    QStringList test;
    test << "-game";
    test << "cstrike";
    test << "-opengl";
    if (!QProcess::startDetached("hl.exe", test)) {
    QMessageBox::critical(this, QString("Erreur critique"), "Le jeu n'a pas pu ĂȘtre lancer, hl.exe introuvable dans le dossier courant");
    }
    @

    The probem is thats works on all computer, but I have some people who can't launch the game, and they got all an ATI. I tried a lot of thing, and when I copy/past the cmd line to cmd.exe, the game is launching well. I tried to copy the line to a .bat and execute it, and it's the same. By the QT program it doesn't work, and by launching the .bat by the explorer it's works.

    Any idea ?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dangelog
      wrote on last edited by
      #2

      Start it non-detached and check the error that QProcess reports. Also, trace the syscalls made by your program. Are you sure hl.exe is in your path?

      Software Engineer
      KDAB (UK) Ltd., a KDAB Group company

      1 Reply Last reply
      0
      • D Offline
        D Offline
        deStrO.BE
        wrote on last edited by
        #3

        We found the problem, it come from an ATI dll.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved