Stefano Ravagni wrote:
>
> i've built a very little application wich could reprocude the "CANNOT SET
> CONNECTION WHILE DATAREADER IS ACTIVE" error.
> 

I've run the project with Visual Studio 2013 and determined that the
exception
being raised is almost certainly not an issue with System.Data.SQLite, per
se.

At the point of the exception, I used the following watch expression:

        
DirectCast(objCmd,System.Data.SQLite.SQLiteCommand)._activeReader.Target Is
Dati

This returns false, indicating that while the SQLiteCommand object does
indeed
have an active data reader, it is NOT the one that was closed just above
that
point in the code.  I'm not sure how the project manages data reader
instances;
however, it would appear that System.Data.SQLite is throwing exceptions just
as
it should in this case.

--
Joe Mistachkin

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

Reply via email to