occi中Result中的getstring()出现异常
看过相关的帖...按照网上的配置好了问题还是会出现
代码如下:......
string cmd="select table_name,num_rows,avg_row_len from dba_tables";
this->stmt = this->conn->createStatement();
this->res = this->stmt->executeQuery(cmd);
      
while(this->res->next())
{
        string table_name = this->res->getString(1);
        string num_rows = this->res->getString(2);
        string avg_row_len = this->res->getString(3); 
}
return this->res;首先配置问题: 
1、vs2008  oracle10g客户端
2、头文件和静态库路径都已经添加 编译能通过
3、运行库->多线程DLL/多线程调试DLL都试过 但是不是这个问题 
4、链接->输入->oci.lib oraocci10.lib msvcrt.lib msvcprt.lib 顺序按网上说的改过,不行
5、预处理按网上说的:WIN32;NDEBUG;WIN32COMMON;_DLL;_MT  也不行
6、并且肯定程序是连上数据库了...并且能够在数据库中创建表和插入项,但是在读取数据用到 getString()的时候出现异常异常如下:
Windows 已在 DataReproduction.exe 中触发一个断点。其原因可能是堆被损坏,这说明 DataReproduction.exe 中或它所加载的任何 DLL 中有 Bug。原因也可能是用户在 DataReproduction.exe 具有焦点时按下了 F12。输出窗口可能提供了更多诊断信息
网上所说的解决方案:3 4 5都试过 不行
有没人遇到同样的情况?能否指点一下