Chimerian, I compiled and tested the tutorial example (which you pointed out) with VC++ on XP Pro. Example is fine, except with the problem of not checking for NULL pointer, which I fixed for you. DB is created and values are stored and retrieved. No problem with SQLite or STL. I do not have Borland C++ Builder 6, but I assume it has debugger and you can put a break point to see where char *ptr points. You can also instead of using sqlite3.dll compile sqlite3.c source code and step through the qlite3_column_text(statement, col) function to see how it goes. I strongly suggest to test this example “AS IS” without any Borland GUI interference. Just pure C++ and STL. (There is always a remote possibility for memory overrun or bad linking job). So try the example alone without the pollution first. Good luck.
----- Original Message ---- >From: Chimerian <chimer...@o2.pl> >To: sqlite-users@sqlite.org >Sent: Mon, March 8, 2010 12:18:53 PM >Subject: Re: [sqlite] Problem with SQLite in BCB 4 >Unfortunately I cant print the value of val before it's pushed to the >values vector because when do that I got this same error - I think >the problem is with pointer: >char * ptr = (char*)sqlite3_column_text(statement, col); >Maybe it hold wrong address ? __________________________________________________________________ Looking for the perfect gift? Give the gift of Flickr! http://www.flickr.com/gift/ _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users