人民的名义最好的影评:SQLAPI 连接mysql数据库,发生访问冲突

来源:百度文库 编辑:中财网 时间:2024/05/02 10:18:35

SQLAPI++ 连接mysql数据库,发生访问冲突

  浏览:14次  时间:2011-08-18 19:10:03
SAConnection *cons = new SAConnection();
try{
cons->setClient(SA_MySQL_Client);
cons->Connect("alldb","sdh","123qwer");

}catch(...)
{

}


在cons->Connect("alldb","sdh","123qwer");发生访问冲突,如下:
sss.exe 中的 0x0042534e 处未处理的异常: 0xC0000005: 写入位置 0xb0942706 时发生访问冲突。我在另一台机器上运行就正常。我用的是VS2008。
请高手指点。