Yesterday, 12:37
I have a program that I can't close; I've tried everything. Here is the current situation:
I also tried using taskkill, but it doesn't work.
If I try from the CMD, on the other hand, I get this—and you can see that the program was open:
C:\PAG>cmd.exe /c taskkill /F /IM PAY_START.EXE
OPERAZIONE RIUSCITA: il processo "PAY_START.EXE" con il PID 8960 è stato terminato.
Do you have a solution for closing this program safely? P.S. This only happens with this one...
Code:
CALLBACK FUNCTION AggiornaXProc()
SELECT CASE CB.MSG
'...........................................chiudi con X
CASE %WM_SYSCOMMAND
IF (CB.WPARAM AND &HFFF0) = %SC_CLOSE THEN
PID = SHELL("PAY.EXE", 1)
DIALOG END CB.HNDL, 0 ' Chiude hDlg2
DIALOG END hDlg, 0 ' Chiude hDlg
CLOSE ' Rilascia gli handle file
END ' Termina definitivamente PAY_START.EXE
END IF
END SELECT
END FUNCTIONCode:
' --- RICHIAMA PAY.EXE ---
PID = SHELL("PAY.EXE", 1)
' --- CHIUSURA ORDINATA IN SEQUENZA CORRETTA ---
DIALOG END hDlg2, 0 ' Chiude prima il dialogo figlio (Aggiornamenti)
DIALOG END hDlg, 0 ' Poi chiude la finestra principale (AgriPag)
CLOSE ' Chiude tutti i canali file aperti
END ' Forza la terminazione del processoI also tried using taskkill, but it doesn't work.
If I try from the CMD, on the other hand, I get this—and you can see that the program was open:
C:\PAG>cmd.exe /c taskkill /F /IM PAY_START.EXE
OPERAZIONE RIUSCITA: il processo "PAY_START.EXE" con il PID 8960 è stato terminato.
Do you have a solution for closing this program safely? P.S. This only happens with this one...
Giuseppe Belziti
Italy
info@softplus.it
Italy
info@softplus.it

