YES...

THERE COULD BE SOME SYNTX ERRORS HERE WHAT I HAVE SENT.


Thanks & Regards
Pramoda.M.A
CREST | KPIT Cummins Infosystems Limited | Bengaluru | Cell: +91 91640 57663

-----Original Message-----
From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org] 
On Behalf Of Simon Davies
Sent: Friday, July 10, 2009 12:52 PM
To: General Discussion of SQLite Database
Subject: Re: [sqlite] SQLITE is not working in pthread

2009/7/10 Pramoda M. A <pramod...@kpitcummins.com>:
>
> Hi,
>
>  We r using Fedora Linux 10. Our application is, when any device is inserted, 
> we will detect that create thread using pthread_create API. Which will find 
> all MP3 files in the device and extract the metadata present in the mp3 files 
> and fill a structre and send it to sqlite.
>
>
>
> Before that, I will create database like;
>
.
.
.
>
> This will run in thread. But here, "entered"  and "entered 2"is printing.  
> But "entered 3" and "printing 4" both are not printing.
>
> After that, if I tried to query the database using command line tools, 
> "Select * from File", it is giving error as
>
> "encrypted file or is not a database"
>
>
>
> Please help me.
>
> Thanks & Regards
>
> Pramoda.M.A
>

Hi Pramoda,

Your code as posted fails to compile because of "error C2181: illegal
else without matching if": look at 'printf("entered 3");'

Does your code work perfectly if not run in a thread?

Regards,
Simon
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to