当前位置:编程学习 > wap >>

数组问题 , 求助, 在线等

Windows 已在 QfwGeoSedSeismic.exe 中触发一个断点。

其原因可能是堆被损坏,这说明 QfwGeoSedSeismic.exe 中或它所加载的任何 DLL 中有 Bug。

原因也可能是用户在 QfwGeoSedSeismic.exe 具有焦点时按下了 F12。

输出窗口可能提供了更多诊断信息。

    // int count = 0;

    QVector<qreal> timeSeries;
    QVector<qreal> depthSeries;

#ifdef Q_OS_WIN
    GeoWellData wellData( dataPath(),
                          prjName(),
                          wellName() );
    if( wellData.getWellDataStatus() ) {
     static  int count = wellData.getWellTDFCount( TDFName );
        qDebug() << "count" << count;
   float* time = new float[ count ];
   float* depth = new float[ count ];
        wellData.getWellTDFValue( TDFName, count, time, depth );
        qDebug() << "readTDFValue    " << count;
        if( count > 0 ) {
            for( int idx = 0; idx < count; idx++ ) {
                timeSeries[ idx ] = time[ idx ];
                depthSeries[ idx ] = depth[ idx ];
                qDebug() << "time" << timeSeries[ idx ] << "depth" << depthSeries[ idx ]
                         << "count" << idx;
            }
            delete[] time;
            delete[] depth;
            return new QfwReadTimeDepthConversion( timeSeries, depthSeries );
        }
    }
#endif

    return 0;
--------------------编程问答-------------------- 运行时查看调用堆栈,一步一步地看究竟是哪一行代码导致了错误。
静态分析很累人的。
补充:移动开发 ,  Qt
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,