Hello, sqlite-users. I'm a windows user - I use VS2005. The DEBUG version of my program works fine, the RELEASE program crashes with Access Violation!!!
LPWSTR szSqlInsert = (LPWSTR)malloc( 2048 ); swprintf( szSqlInsert, L"INSERT INTO fs VALUES( NULL, '%s', '%s', '%s', '%s', '%s', '%s', '%d', '%s', '%s', '%d', '%s', '%s', '%d', '%d', '%d', '%d', '%s')", title.c_str(), title2.c_str(), artist.c_str(), artist2.c_str(), album.c_str(), album2.c_str(), year, genre.c_str(), genre2.c_str(), track, comment.c_str(), comment2.c_str(), iBitrate, iSampleRate, iChannels, iLength, filename.c_str()); sqlite3_stmt *db_stmt = NULL; int iResult = sqlite3_prepare16_v2(db, szSqlInsert, -1, &db_stmt, NULL ); // CRASH assert(iResult == SQLITE_OK); The call stack (many variables are invalid 'cause it's release build) http://www.crystalidea.com/temp/callstack.png Take a look please, and could please add to CC my email: [EMAIL PROTECTED] -- Best Regards, Ilya ----------------------------------------------------------------------------- To unsubscribe, send email to [EMAIL PROTECTED] -----------------------------------------------------------------------------