FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
Herramientas | Buscar en Tema | Desplegado |
#21
|
||||
|
||||
Cita:
Coloco el código de nuevo para dejarlo mas claro y optimizarlo un poco:
Saludos. |
#22
|
||||
|
||||
¿Que este ejemplo no es básicamente lo mismo que en el mensaje #5?
Lo comento no por demeritar éste, sino porque ya el compañero mencionaba que le fallaba con algunos programas. // Saludos |
#23
|
|||
|
|||
No, no son iguales.
Pero todos se parecen . Éste, el del mensaje 5º, el propuesto en TrucoManía... La estructura en todos es básicamente la misma. Pero tienen algunas diferencias. Lo que no tengo ni idea es a groso modo cual de todas las opciones es la mejor... De todos modos... que no hay manera... Ahora, al ejecutar el CreateProcess() me salta una excepción con el mesaje "The application failed to ainitialize properly (0xc0000005). Click on OK to terminate the application." Sin embargo, parece que sí entra en el IF. Pero no obstante, luego no entra en el siguiente IF, el del WaitForSingleObject(). Y además ahora el PC ha empezado a quedarse colgado por momentos. He tenido que cerrar el Delphi. Algo falla. |
#24
|
||||
|
||||
Cita:
Cita:
Cita:
Saludos. |
#25
|
||||
|
||||
Modificación para evitar problemas si se ejecutan programas que no devuelven nada a la consola:
Saludos. |
#26
|
||||
|
||||
Cita:
Pues mira http://www.elmalabarista.com/es/blog...ti-plataforma/ Asi es como la porte a Delphi Y asi se usa:
Desafortunadamente tiene un bug: Si el proceso DOS genera un output muy grande muy rapido se queda "colgado". No he podido ver todavia como arreglarlo...
__________________
El malabarista. |
#27
|
||||
|
||||
Cita:
Ya digo que no lo he estudiado, pero se ve bien. |
|
|
|