Jump to content

Recommended Posts

Posted

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 ?

Posted (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 by saywell
Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...