Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Portuguese
  4. [SOLVED] QProcess não inicia no Windows XP
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] QProcess não inicia no Windows XP

Scheduled Pinned Locked Moved Portuguese
21 Posts 3 Posters 12.8k Views 1 Watching
  • 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.
  • F Offline
    F Offline
    franzbischoff
    wrote on last edited by
    #12

    Pronto... "MSDN.com says that this function is only available on Windows Vista and later" portanto... Qt nao suporta XP? :)

    Free Online WWII Air Combat SImulation
    http://www.tabajarahost.org

    1 Reply Last reply
    0
    • T Offline
      T Offline
      TioRoy
      wrote on last edited by
      #13

      Mas acho que a função InitOnceExecuteOnce não é usada pelo Qt.

      Dei uma olhada nos fontes do Qt (4.8 e 5.2) e não achei uso desta função pelo Qt. Ele usa a CreateProcess para iniciar processos.

      Como você já testou com o notepad, não me parece um problema diretamente do Qt.

      Este executável que você está tentando rodar.... posso dar uma olhada nele.

      1 Reply Last reply
      0
      • F Offline
        F Offline
        franzbischoff
        wrote on last edited by
        #14

        Olá novamente,
        Pra tira teima, instalei tudo no xp e compilei o launcher lá. Mesmo problema...

        De fato outros executáveis rodam, mas este que está dando problema não dava quando o launcher era escrito em Lazarus, só quando o refiz em Qt...

        o executável é este http://goo.gl/AymzjH

        vlw

        Free Online WWII Air Combat SImulation
        http://www.tabajarahost.org

        1 Reply Last reply
        0
        • T Offline
          T Offline
          TioRoy
          wrote on last edited by
          #15

          Dei uma olhada no EXE e ele não usa a dita função.

          Mas este usa uma DLL chamada TASKKEYHOOK.DLL.

          Consegue ela também?

          Estou achando muito estranho.....

          1 Reply Last reply
          0
          • F Offline
            F Offline
            franzbischoff
            wrote on last edited by
            #16

            Este programa é um jogo

            Dll: http://goo.gl/HPkDYF

            Vlw

            Free Online WWII Air Combat SImulation
            http://www.tabajarahost.org

            1 Reply Last reply
            0
            • T Offline
              T Offline
              TioRoy
              wrote on last edited by
              #17

              Esqueci de perguntar... No XP você está usando o VS2008 para compilar, certo?

              Você pode usar o Dependency Walker (http://www.dependencywalker.com/) para verificar as dependências do EXE, e ver se está quebrado algo. É muito estranho mesmo você rodar o EXE "manualmente" e funcionar, e pelo Qt não.

              Um coisa que você pode fazer com o Dependency Walker é fazer um "profiling": Rodar o programa pelo Dependency Walker" e ele analisa o carregamento de outras DLL's que ocorreram durante o programa (e não no início que é o normal). Pode tentar fazer isso também com o seu Launcher.

              1 Reply Last reply
              0
              • F Offline
                F Offline
                franzbischoff
                wrote on last edited by
                #18

                Qt 32 bits com Mingw 32 bits

                Vou experimentar. Quero testar também com outras chamadas... enfim, tenho trabalho pro fds :-)

                Free Online WWII Air Combat SImulation
                http://www.tabajarahost.org

                1 Reply Last reply
                0
                • F Offline
                  F Offline
                  franzbischoff
                  wrote on last edited by
                  #19

                  Criei um HelloWorldQT no netbeans, roda normal, abre a janelinha e tal. Então adicionei uma chamada CreateProcess() que é executada quando eu escrevo no textbox, e tudo correu lindamente...

                  @if (CreateProcessA((LPSTR) "C:/caminhodo/maldito.exe", NULL,
                  NULL, NULL, FALSE, 0, NULL,
                  NULL, &StartupInfo, &ProcessInfo)) {
                  std::cout << "OK" << std::endl;
                  WaitForSingleObject(ProcessInfo.hProcess, INFINITE);
                  CloseHandle(ProcessInfo.hThread);
                  CloseHandle(ProcessInfo.hProcess);
                  std::cout << "OK2" << std::endl;
                  }@

                  Portanto... isso é ou não um bug do Qt? :)

                  Update:

                  Copiei o código inteiro do QProcessPrivate::startDetached() que tem no qprocess_win.cpp do Src do Qt e continua funcionando... :-/

                  Free Online WWII Air Combat SImulation
                  http://www.tabajarahost.org

                  1 Reply Last reply
                  0
                  • F Offline
                    F Offline
                    franzbischoff
                    wrote on last edited by
                    #20

                    Ok, agora pra piorar... uso o QProcess dentro do HelloWorld (conforme o codigo do meu primeiro post) e funciona... :-(

                    Já estou ficando doido...

                    Free Online WWII Air Combat SImulation
                    http://www.tabajarahost.org

                    1 Reply Last reply
                    0
                    • F Offline
                      F Offline
                      franzbischoff
                      wrote on last edited by
                      #21

                      Resolvido... era um dll do jogo que foi compilado no W7... recompilando usando o MSVC Express dentro do XP resolve o problema...

                      Ufa :)

                      Free Online WWII Air Combat SImulation
                      http://www.tabajarahost.org

                      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