外部组件引发了异常错误

时间:2013-01-12 05:54:56

标签: .net vb.net

我收到错误“外部组件抛出异常。”在VB.net项目中。

以下是错误的堆栈跟踪

      at globalmodule.Main1.AddColToSubGrid(AxMSFlexGrid msfg, String colName, String ClWidth, String Cntrl, String ColValid)  
      at globalmodule.Main1.getSubGridDesign(AxMSFlexGrid& msfg, String mainGridColName, DataSet DSFrmshrtctTemp, Boolean GetXmlDesignData)

AddColToSubgrid的代码是

    Public Sub AddColToSubGrid(ByVal msfg As AxMSFlexGridLib.AxMSFlexGrid, ByVal colName    As String, ByVal ClWidth As String, ByVal Cntrl As String, ByVal ColValid As String)
    Try

        msfg.Cols = msfg.Cols + 1
        msfg.set_TextMatrix(field, msfg.Cols - 1, colName)
        msfg.set_TextMatrix(gridheadrow, msfg.Cols - 1, colName)
        msfg.set_TextMatrix(COLWIDTH, msfg.Cols - 1, ClWidth)
        msfg.set_TextMatrix(iControls, msfg.Cols - 1, Cntrl)
        msfg.set_TextMatrix(validations, msfg.Cols - 1, ColValid)

    Catch ex As Exception
        Write_toErrorLog(ex.StackTrace, Err.Description, Err.Number, "Mainmodule", "AddColToSubGrid")
    End Try
    End Sub

谁能告诉我导致错误的原因?

这是我异常的调用堆栈..

 WARNING: Stack unwind information not available. Following frames may be wrong.
 clr!LogHelp_NoGuiOnAssert+0x8232
 clr!LogHelp_NoGuiOnAssert+0x84ff
 clr!CreateAssemblyNameObject+0x112b7
 clr!GetCLRFunction+0xb958
 clr!GetCLRFunction+0xd11c
 clr!GetCLRFunction+0xd45a
 mscorlib_ni+0x2bd689
 mscorlib_ni+0x2bd37c
 mscorlib_ni+0x2bbfed
clr+0x21bb
clr!CoUninitializeEE+0x6a3a
clr!CoUninitializeEE+0x6bdc
clr!CoUninitializeEE+0x6c11
clr!DllGetClassObjectInternal+0xb3c
clr!DllGetClassObjectInternal+0xe84
clr!DllGetClassObjectInternal+0x1143
clr!DllGetClassObjectInternal+0x276
clr!DllGetClassObjectInternal+0x2fe
clr!DllGetClassObjectInternal+0x3a3
MSFLXGRD!DllGetClassObject+0x556a 

谢谢

0 个答案:

没有答案