• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: SQLite problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SQLite problem


  • Subject: Re: SQLite problem
  • From: Sherm Pendley <email@hidden>
  • Date: Sun, 6 Jul 2003 18:38:53 -0400

On Sunday, July 6, 2003, at 06:22 PM, Sanri Parov wrote:

I'm making my own CRM using sqlite and SQLDatabase wrapper.
When I run my application from PB, everything runs fine and the
database is opened (or created).
If I try to double click directly on the app, the database is NOT
opened or created.
I use the 2.8.0 version of sqlite and the library is STATICALLY linked.
Has anyone else experienced this kinda problem?

Are you storing some piece of critical information, such as the database login/password, in a file that's addressed through a relative path name? If so, that could be a problem - one difference between launching an app from PB, and from the Finder, is the current directory. When an app is launched from PB, the current directory is the build directory, so any relative path names are resolved relative to that. When it's launched from Finder, the current directory is '/'.

sherm--


A well-written program is its own heaven; a poorly-written program is its own hell.

-- The Tao of Programming
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >SQLite problem (From: Sanri Parov <email@hidden>)

  • Prev by Date: Re: Setting the origin of a GC
  • Next by Date: Re: Project Builder and scripting
  • Previous by thread: SQLite problem
  • Next by thread: Re: how does canCloseDocumentWithDelegate work?
  • Index(es):
    • Date
    • Thread