Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3

Thread: Sqlite error

  1. #1
    Join Date
    Aug 2001
    Location
    UK
    Posts
    20

    Sqlite error

    I am getting an error:

    attempt to index global 'sqlite' (nil value)

    on startup,

    does anybody know why?

    Moiz

  2. #2
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160

    more details please

    Is this for a project or template that you are using? It sounds like a project that references a database it cannot find so it cannot query the sqlite master table.
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  3. #3
    Join Date
    Aug 2001
    Location
    UK
    Posts
    20

    sqlite

    Quote Originally Posted by TJ_Tigger
    Is this for a project or template that you are using? It sounds like a project that references a database it cannot find so it cannot query the sqlite master table.
    It is a project,
    I will check the code again, it works on one application (my test) and fails on the main application:

    =========
    ---Delete old database to refresh database if files are changed
    File.Delete(_SourceFolder .. "\\AutoPlay\\Docs\\Images.db", false, false, false, nil);
    ---set db path
    sImageDatabase = _SourceFolder .. "\\AutoPlay\\Docs\\Images.db";
    ---Open the database, or in abscence, create one
    db = SQLite.Open(sImageDatabase);
    nLastError = Application.GetLastError();
    if nLastError ~= SQLite.OK then
    Dialog.Message("Error Opening File", SQLite.GetLastErrorString());
    end
    ==========

    It tells me that it fails on line 6 (bold)

    Moiz

Similar Threads

  1. SQLite database in MEMORY only!
    By Intrigued in forum AutoPlay Media Studio 5.0
    Replies: 5
    Last Post: 10-23-2009, 07:49 PM
  2. Help to get error in SQLite searching
    By dmla in forum AutoPlay Media Studio 5.0
    Replies: 4
    Last Post: 04-07-2005, 08:20 AM
  3. ZipExtract "callback" error
    By Darwin in forum AutoPlay Media Studio 5.0
    Replies: 2
    Last Post: 02-21-2005, 06:34 PM
  4. Function: Blowfish Encrypt/Decrypt Strings
    By Lorne in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 05-31-2004, 03:16 PM
  5. SUF6.0.0.2 -- installer hangs.
    By jassing in forum Setup Factory 6.0
    Replies: 4
    Last Post: 12-19-2001, 11:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts