Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8921201
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:28:44+00:00 2026-06-15T06:28:44+00:00

I am developing a tool to export changes in dcmfiles to excel file ..

  • 0

I am developing a tool to export changes in dcmfiles to excel file ..

I have this error that occurs in other machine but not in mine

(Index was outside the bounds of the array)

Here is the fault description:

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at WindowsApplication1.Mdl_GetDifference.compareParsedDCMTotalRepo(DCMStruct[] myDCMs, Worksheet& xlSheetRev, Int32& FileRow, Int32 SvnNo, String FName, String baseline)
   at WindowsApplication1.ToExcel.GenTotalReport(Worksheet& xlSheetRev, String baseline)
   at WindowsApplication1.ToExcel.ExportToExcel(String baseline)
   at WindowsApplication1.Home.GenRop_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3634 (GDR.050727-3600)
    CodeBase: file:///C:/WINNT/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
AdvertTest
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file://bosch.com/dfsrb/DfsDE/DIV/BEG/EC/Common/Arbeitshilfen/Tools/Advert/00_temp/BetaTest_Version/AdvertTest.exe
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 8.0.0.0
    Win32 Version: 8.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3634 (GDR.050727-3600)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3637 (GDR.050727-3600)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3639 (GDR.050727-3600)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Runtime.Remoting
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
Interop.PushOkSvn
    Assembly Version: 1.3.0.0
    Win32 Version: 1.3.0.0
    CodeBase: file://bosch.com/dfsrb/DfsDE/DIV/BEG/EC/Common/Arbeitshilfen/Tools/Advert/00_temp/BetaTest_Version/Interop.PushOkSvn.DLL
----------------------------------------
Microsoft.Office.Interop.Excel
    Assembly Version: 12.0.0.0
    Win32 Version: 12.0.6600.1000
    CodeBase: file:///C:/WINNT/assembly/GAC/Microsoft.Office.Interop.Excel/12.0.0.0__71e9bce111e9429c/Microsoft.Office.Interop.Excel.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

I can add more information if needed .. Please any help will be appreciated

 Public Sub compareParsedDCMTotalRepo(ByVal myDCMs() As DCMStruct, ByRef xlSheetRev As Worksheet, ByRef FileRow As Integer, ByVal SvnNo As Integer, ByVal FName As String, ByVal baseline As String)

    ' is completly the same with function compareparsedDCM but just writing into excel is different, here we added few more coloums to excel

    Dim myVal1, myVal2, myVal1X, myVal2X, myVal1Y, myVal2Y, index2 As String
    Dim myName1 As String '= ""
    Dim k, l, m
    Dim FileCol As Integer = 1
    Dim ParameterCol As Integer = 2
    Dim ParTypeCol As Integer = 3
    Dim OldValCol As Integer = 4
    Dim NewValCol As Integer = 5
    Dim ChgByCol As Integer = 6
    Dim CommCol As Integer = 7
    Dim RevCol As Integer = 8
    Dim GenCommCol As Integer = 12
    Dim TcmInfoCol As Integer = 13
    Dim BaselineCol As Integer = 14

    FName = FName.Substring(FName.LastIndexOf("/") + 1)

    CommColl.Clear()

    loadCommColl(SvnData(SvnNo).CommitComment)


    '''''''''''''''''''''''''''''''''''''''' The following handles with the Festwert part.''''''''''''''''''''''''''''''
    ' checking all the festwert values of old file and new file
    For k = LBound(myDCMs(0).FESTWERT) To UBound(myDCMs(0).FESTWERT)

        If myDCMs(0).FestwCount < 1 Then
            Exit For
        End If
        myName1 = myDCMs(0).FESTWERT(k).Name
        myVal1 = myDCMs(0).FESTWERT(k).Value

        index2 = -1  ' index2 is used to find if name of the Parameter in old DCM also exists in the new one.
        ' This step checks, whether this Festwert is changed in the new DCM file by looking for its name in the FESTWERTMap.
        If myDCMs(1).FESTWERTMap.Contains(myName1) Then
            index2 = myDCMs(1).FESTWERTMap(myName1)
        End If

        If index2 < 0 Then
            ' if index is <0 means its not there that is removed from the file
            ' so, we are writing the same into excel file
            xlSheetRev.Cells(FileRow, FileCol) = FName
            xlSheetRev.Cells(FileRow, ParameterCol) = myName1
            xlSheetRev.Cells(FileRow, ParTypeCol) = "Festwert"
            xlSheetRev.Cells(FileRow, OldValCol) = myVal1
            xlSheetRev.Cells(FileRow, NewValCol) = "Removed"
            xlSheetRev.Cells(FileRow, ChgByCol) = ParamAuthor.Item(FName & ";" & myName1)
            xlSheetRev.Cells(FileRow, CommCol) = ParamCommTotal(SvnNo, FName, myName1)
            If SvnData(SvnNo).RevNo <> 0 Then
                xlSheetRev.Cells(FileRow, RevCol) = SvnData(SvnNo).RevNo
            End If
            xlSheetRev.Cells(FileRow, GenCommCol) = getGenComment()
            xlSheetRev.Cells(FileRow, TcmInfoCol) = myName1 & ":" & myVal1 & "-->" & "Removed"
            xlSheetRev.Cells(FileRow, BaselineCol) = baseline
            FileRow = FileRow + 1
            findInfoHRevParam(SvnNo, FName, myName1)
        Else ' if the FW exists, check if it was changed
            myVal2 = myDCMs(1).FESTWERT(index2).Value ' get the new valua.
            If diffValue(myVal1, myVal2) Then
                ' comparing the oldvalues and newvalues, if they are not equal then chaged. Has to be written in Excel.
                xlSheetRev.Cells(FileRow, FileCol) = FName
                xlSheetRev.Cells(FileRow, ParameterCol) = myName1
                xlSheetRev.Cells(FileRow, ParTypeCol) = "Festwert"
                xlSheetRev.Cells(FileRow, OldValCol) = myVal1
                xlSheetRev.Cells(FileRow, NewValCol) = myVal2
                xlSheetRev.Cells(FileRow, ChgByCol) = ParamAuthor.Item(FName & ";" & myName1)
                xlSheetRev.Cells(FileRow, CommCol) = ParamCommTotal(SvnNo, FName, myName1)
                If SvnData(SvnNo).RevNo <> 0 Then
                    xlSheetRev.Cells(FileRow, RevCol) = SvnData(SvnNo).RevNo
                End If
                xlSheetRev.Cells(FileRow, GenCommCol) = getGenComment()
                xlSheetRev.Cells(FileRow, TcmInfoCol) = myName1 & ":" & myVal1 & "-->" & myVal2
                xlSheetRev.Cells(FileRow, BaselineCol) = baseline
                FileRow = FileRow + 1
                findInfoHRevParam(SvnNo, FName, myName1)
            End If
        End If
    Next k

    ' If there is newly added FW.
    For k = LBound(myDCMs(1).FESTWERT) To UBound(myDCMs(1).FESTWERT)
        If myDCMs(1).FestwCount < 1 Then
            Exit For
        End If
        myName1 = myDCMs(1).FESTWERT(k).Name
        If myDCMs(0).FESTWERTMap.Contains(myName1) = False Then
            xlSheetRev.Cells(FileRow, FileCol) = FName
            xlSheetRev.Cells(FileRow, ParameterCol) = myName1
            xlSheetRev.Cells(FileRow, ParTypeCol) = "Festwert"
            xlSheetRev.Cells(FileRow, OldValCol) = "Added"
            xlSheetRev.Cells(FileRow, NewValCol) = myDCMs(1).FESTWERT(k).Value
            xlSheetRev.Cells(FileRow, ChgByCol) = ParamAuthor.Item(FName & ";" & myName1)
            xlSheetRev.Cells(FileRow, CommCol) = ParamCommTotal(SvnNo, FName, myName1)
            If SvnData(SvnNo).RevNo <> 0 Then
                xlSheetRev.Cells(FileRow, RevCol) = SvnData(SvnNo).RevNo
            End If
            xlSheetRev.Cells(FileRow, GenCommCol) = getGenComment()
            xlSheetRev.Cells(FileRow, TcmInfoCol) = myName1 & ":" & "Added-->" & myDCMs(1).FESTWERT(k).Value
            xlSheetRev.Cells(FileRow, BaselineCol) = baseline
            FileRow = FileRow + 1
            findInfoHRevParam(SvnNo, FName, myName1)
        End If
    Next

end sub

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T06:28:46+00:00Added an answer on June 15, 2026 at 6:28 am

    Make sure to ship the .pdb files as well, since they contain line number information that are displayed in the stack trace of the exceptions.

    System.IndexOutOfRangeException: Index was outside the bounds of the array.
      at WindowsApplication1.Mdl_GetDifference.compareParsedDCMTotalRepo(DCMStruct[] myDCMs, Worksheet& xlSheetRev, Int32& FileRow, Int32 SvnNo, String FName, String baseline):line 20
      at WindowsApplication1.ToExcel.GenTotalReport(Worksheet& xlSheetRev, String baseline):line 35
    …

    (The numbers I used are just examples)

    You will then know on which code line the exception is thrown.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing web application on python. But the client wants a tool that exports
I'm developing a tool that queries external system for updates and this query is
I am developing a monitoring tool(web application) to check the webservices that i have
Problem: I am developing a tool that does some file operations in Unix environment,
I have been working on developing this analytical tool to help interpret and analyze
I am developing a simple tool that will be used across a variety of
I'm developing a TFS tool to assist the developers in our company. This said
I am developing a custom list-search tool. I have multiple custom properties to retain
I'm developing on super fast fibre optic connection. I want a tool that allows
I'm developing a tool that accesses SVN by running the command line SVN to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.