> I figured up, that in my main app, when I don't make nested queries no
> memory leaks. In simple app no matter id I use nested or strait
> queries memory does not leak.
> For example:
> 
> sprintf( lpbuf, "SELECT tagList FROM overlay WHERE modalityID=%d "
>                                       "AND userID=%d "
>                                       "AND regionNR=%d",
>                                       4, 1, 0 );
> sqliteDB->readBlob( lpbuf, &data, &dataLength);
> 
> 
> does not leak, but similar:
> 
> sprintf( lpbuf, "SELECT tagList FROM overlay WHERE modalityID=(SELECT
> id FROM modality WHERE symbol='CR') "
>               "AND userID=(SELECT id FROM user WHERE login='basiek') "
>               "AND regionNR=0" );
> sqliteDB->readBlob( lpbuf, &data, &dataLength);
> 
> leaks.
> 
> Isn't it strange?
> I really cannot reproduce this error in simple console application.

Looks like the problem is from your app indeed. Again, what does
_CrtDumpMemoryLeaks() say?

- Sherief

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

Reply via email to