mysql C API - mysql_stmt_fetch throw exception: access violation write at 0x00000008
问题 I'm getting "Unhandled exception at 0x0369AF03 (libmysql.dll) in node.exe: 0xC0000005: Access violation writing location 0x00000008." error message while using mysql C API in a loop. Environment: Windows 7 32bit, Mysql 5.6 The error only occurs in Debug mode, in release mode, it passed and fetched result, this is very weird. I googled, and set the STMT_ATTR_CURSOR_TYPE, but it's the same Please advise, thanks! code: prepare statement static const char *sql_odb_read = "SELECT `type`, `size`,