lafafmentvotre Posted March 1, 2011 Author Posted March 1, 2011 I define it in the beginning : #region SCRIPT VARIABLES Global $aResult, $iRows, $iColumns, $aRow, $hQuery, $msg,$comboList,$comboFirst,$printer Global $file=@ScriptDir&'\printers.txt' Global $file_sqlite=@ScriptDir&'\printers.sqlite' The first FileDelete($file_sqlite) works but not when i exit the script. And yet, for every : _SQLite_Startup() _SQLite_Open($file_sqlite) i'm using : _SQLite_Close($file_sqlite) _SQLite_Shutdown() Have you an idea ?
saywell Posted March 1, 2011 Posted March 1, 2011 (edited) It may be that you are closing before part of the script gets to its SQLite close/shutdown lines. Try adding them as an extra, to the Case $listener=$GUI_EVENT_CLOSE Or $listener=$exititem Or $listener=$exitbutton FileDelete($file_sqlite) ExitLoop section before the filedelete command. Do you need an 'exit' there, too? William Edited March 1, 2011 by saywell
lafafmentvotre Posted March 1, 2011 Author Posted March 1, 2011 It doesn't works with this : Case $listener=$GUI_EVENT_CLOSE Or $listener=$exititem Or $listener=$exitbutton ;~ FileDelete($logo) _SQLite_Shutdown() _SQLite_Close($file_sqlite) FileDelete('printers.sqlite') Exit
saywell Posted March 1, 2011 Posted March 1, 2011 Try it with the close before the shutdown If that doesn't work, I'm not sure what's going on! You could try putting a msgbox before the exit command, to pause the script, then looking in windows taskmanager to see what processes are running. William
lafafmentvotre Posted March 1, 2011 Author Posted March 1, 2011 There are no process. It's not important, i would fix $file and $file_sqlite in @tempdir Many thanks for you help
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now