Re: Screenshots: Create new bitpim storage wizard
Roger Binns <[email protected]>
| Newsgroups | gmane.comp.mobile.bitpim.devel |
|---|---|
| Message-ID | <[email protected]> |
·· ħþø ·· wrote: > Well, even if you read-lock just the DB, That would most likely screw up SQLite since it also does its own locking, but tries to not have the database open. It has no idea that no other thread or process will try to access the db. > BitPim startup routine catch that lock and inform the user that the > profile (proper term for it?) is already in use. If I'm off-base, tell > me; I'm just throwing ideas out there. The general gist is right. There are just devils in the details. There is no reason a dummy lockfile couldn't be created and that used instead which should work under all circumstances, and be released should the program crash. There appear to be posix module (Mac, Linux) and msvcrt module (Windows) functions that may do the trick. Roger ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV