MSVS2017 Fatal Execution Engine Error in 64bit VB.Net (Upload Data into excel)

0

I am using VS2017 64bit and framework 4.7.2 . I am try to upload the value to excel sheet 2010 64bit. The program has stopped in the middle and POP below error message . Please help me to advise .

Managed Debugging Assistant 'FatalExecutionEngineError' : 'The runtime has encountered a fatal error. The address of the error was at 0xf636bc24, on thread 0x369c. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack.

FYI , 32bit the program has working fine

VB.Net 2017

If CStr(oSheet.Cells(iRow, iStartCol + iArrCount).value) = "" And oRS.Fields.Item("IsTotal").Value <> "-" Then
                    If bIsPercentage = True Then
                        oSheet.Cells(iRow, iStartCol + iArrCount).HorizontalAlignment = Excel.XlHAlign.xlHAlignCenter
                        oSheet.Cells(iRow, iStartCol + iArrCount).NumberFormat = "_(* #,##0.00%_);_(* (#,##0.00%);"
                    Else
                        oSheet.Cells(iRow, iStartCol + iArrCount).HorizontalAlignment = Excel.XlHAlign.xlHAlignCenter
                        oSheet.Cells(iRow, iStartCol + iArrCount).NumberFormat = "_(* #,##0_);_(* (#,##0);"
                    End If
                    oSheet.Cells(iRow, iStartCol + iArrCount) = "0.00"
fatal-error
asked on Stack Overflow May 16, 2019 by K.M.Saravanan • edited May 16, 2019 by vincrichaud

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0