Post by angelo2449 on Feb 23, 2019 2:26:19 GMT -5
The error.log file is empty, no error was recorded after exiting the program.
I checked if there are any sub open routines, nothing. No open windows.
This is the code that manages the exit from the program:
The compiled program does not return errors and works perfectly, in source, at the exit the LB editor crashes and I have to use the Windows 10 Task Manager to unlock it!
Since the compiled works, it might be ok, but it's not fair I have to know ..........
I checked if there are any sub open routines, nothing. No open windows.
This is the code that manages the exit from the program:
' @[quit.Main]
[quit.Main]
on error goto [Fine]
if Picchettamento = 1 then close #syst
if EstrFlag = 1 then close #estr
' -----------------------
if FileExists(Disco$ + "\AutocadSupporto\Libretto\LibrettoPerPicchettamento.csv") then
kill Disco$ + "\AutocadSupporto\Libretto\LibrettoPerPicchettamento.csv"
end if
if FileExists(Disco$ + "\Trasformer\Recon\ConveRgoFile.dat") then
kill Disco$ + "\Trasformer\Recon\ConveRgoFile.dat"
end if
if FileExists(Disco$ + "\Trasformer\Provvisori\vertodownload.geojson") then
kill Disco$ + "\Trasformer\Provvisori\vertodownload.geojson"
end if
if FileExists(Disco$ + "\Trasformer\DatiTrasformati\LibrettoCompleto.dat") then
kill Disco$ + "\Trasformer\DatiTrasformati\LibrettoCompleto.dat"
end if
if FileExists(Disco$ + "\AutocadSupporto\Provvisori\FileAperto.dat") then
kill Disco$ + "\AutocadSupporto\Provvisori\FileAperto.dat"
end if
if FileExists(Disco$ + "\AutocadSupporto\Provvisori\Geografiche.dat") then
kill Disco$ + "\AutocadSupporto\Provvisori\Geografiche.dat"
end if
if FileExists(LibrettoCompletoSpeciale$) then
kill LibrettoCompletoSpeciale$
end if
' -----------------------
if PosizioneNelProgramma$ = "Dxf" then
Messaggio1$ = "Sei sicuro di voler uscire da > Trasformer < ?"
Aspetto$ = "Rosso"
gosub [Conferma]
if Risposta$ = "No" then wait
else
close #main
end
end if
[Fine]
close #main
end
The compiled program does not return errors and works perfectly, in source, at the exit the LB editor crashes and I have to use the Windows 10 Task Manager to unlock it!
Since the compiled works, it might be ok, but it's not fair I have to know ..........