Re: [sqlite] interrupting sqlite3_prepare_v2

2008-06-01 Thread Daniel Önnerby
I have investigated futher and noticed that it will break when preparing 
statements like creating tables from a select.
I filed a bugreport with example code at: 
http://www.sqlite.org/cvstrac/tktview?tn=3155

Dennis Cote wrote:
> Daniel Önnerby wrote:
>   
>> Sometimes this interrupt occur in the middle of a 
>> sqlite3_prepare_v2 and in some cases this will cause my application to 
>> break in the SQLite code somewhere.
>>
>> Please let me know if you want me to investigate this futher.
>>
>> 
>
> Yes, please do so if you have the time. If you locate a bug it will help 
> all users of SQLite.
>
> Dennis Cote
> ___
> 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


Re: [sqlite] interrupting sqlite3_prepare_v2

2008-05-22 Thread Dennis Cote
Daniel Önnerby wrote:
> 
> Sometimes this interrupt occur in the middle of a 
> sqlite3_prepare_v2 and in some cases this will cause my application to 
> break in the SQLite code somewhere.
> 
> Please let me know if you want me to investigate this futher.
> 

Yes, please do so if you have the time. If you locate a bug it will help 
all users of SQLite.

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


Re: [sqlite] interrupting sqlite3_prepare_v2

2008-05-16 Thread Daniel Önnerby
Forgot to say that I'm using SQLite 3.5.9 compiled from the amalgamation 
with threadsafety on.

Daniel Önnerby wrote:
> Hi all!
>
> My application is running all my SQLite stuff on one thread and 
> sometimes I run a sqlite3_interrupt from another thread to cancel the 
> current execution. Sometimes this interrupt occur in the middle of a 
> sqlite3_prepare_v2 and in some cases this will cause my application to 
> break in the SQLite code somewhere.
> Luckily I have made a SQLite C++ wrapper, so I have solved this  by 
> putting a mutex lock around all prepare and interrupt, but I'm just 
> curious if this is a known issue or if I should investigate this futher?
>
> I'm running on windows using VS2005 and from what I remember the break 
> comes when hitting the va_end inside the sqlite3SetString. From what I 
> can see, both "pz" and "ap" is NULL at this point.
>
> Please let me know if you want me to investigate this futher.
>
>
> Best regards
> Daniel
> ___
> 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


[sqlite] interrupting sqlite3_prepare_v2

2008-05-16 Thread Daniel Önnerby
Hi all!

My application is running all my SQLite stuff on one thread and 
sometimes I run a sqlite3_interrupt from another thread to cancel the 
current execution. Sometimes this interrupt occur in the middle of a 
sqlite3_prepare_v2 and in some cases this will cause my application to 
break in the SQLite code somewhere.
Luckily I have made a SQLite C++ wrapper, so I have solved this  by 
putting a mutex lock around all prepare and interrupt, but I'm just 
curious if this is a known issue or if I should investigate this futher?

I'm running on windows using VS2005 and from what I remember the break 
comes when hitting the va_end inside the sqlite3SetString. From what I 
can see, both "pz" and "ap" is NULL at this point.

Please let me know if you want me to investigate this futher.


Best regards
Daniel
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users