Index out of range when removing an assembly

TeeGofer general
Locked
Robert van Poelgeest
Newbie
Newbie
Posts: 13
Joined: Wed Dec 03, 2003 5:00 am

Index out of range when removing an assembly

Post by Robert van Poelgeest » Tue May 18, 2004 2:18 pm

Hi,

I am using version 2.5.0.4 and run into the following problem, when i try to remove an assembly from a project it first asks me if i want to continue and if i choose yes if i want to refresh all element information. If I choose yes again i get the following index out of range exception:

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

************** Exception Text **************
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.Collections.ArrayList.get_Item(Int32 index)
at TeeGofer.MetaViewerForm.SaveExistingNodeInfo(Hashtable tmpNodeObjHashTable, Int32 Count)
at TeeGofer.MetaViewerForm.RefreshProjectContents()
at TeeGofer.MetaViewerForm.RefreshProject()
at TeeGofer.MetaViewerForm.RemoveAssemblyRoot()
at TeeGofer.MetaViewerForm.menuItem72_Click(Object sender, EventArgs e)
at System.Windows.Forms.MenuItem.OnClick(EventArgs e)
at System.Windows.Forms.MenuItemData.Execute()
at System.Windows.Forms.Command.Invoke()
at System.Windows.Forms.Control.WmCommand(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.TreeView.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
TeeGofer
Assembly Version: 2.5.0.4
Win32 Version: 2.5.0.4
CodeBase: file:///C:/Program%20Files/Steema%20Software/TeeGofer%20v2/TeeGofer.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
System.Xml
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll
----------------------------------------
AxInterop.SHDocVw
Assembly Version: 1.1.0.0
Win32 Version: 1.1.0.0
CodeBase: file:///C:/Program%20Files/Steema%20Software/TeeGofer%20v2/AxInterop.SHDocVw.DLL
----------------------------------------
System.Data
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/system.data/1.0.5000.0__b77a5c561934e089/system.data.dll
----------------------------------------
Interop.SHDocVw
Assembly Version: 1.1.0.0
Win32 Version: 1.1.0.0
CodeBase: file:///C:/Program%20Files/Steema%20Software/TeeGofer%20v2/Interop.SHDocVw.DLL
----------------------------------------
Accessibility
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/accessibility/1.0.5000.0__b03f5f7f11d50a3a/accessibility.dll
----------------------------------------
Interop.MSHelpServices
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/Steema%20Software/TeeGofer%20v2/Interop.MSHelpServices.DLL
----------------------------------------
CustomMarshalers
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/custommarshalers/1.0.5000.0__b03f5f7f11d50a3a/custommarshalers.dll
----------------------------------------

************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for this
application or machine (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 machine
rather than being handled by this dialog.


With kind regards,
Robert van Poelgeest

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Post by Christopher » Thu May 20, 2004 12:27 pm

Hi Robert,
I am using version 2.5.0.4 and run into the following problem, when i try to remove an assembly from a project it first asks me if i want to continue and if i choose yes if i want to refresh all element information. If I choose yes again i get the following index out of range exception:
I'm having problems reproducing this one here. Using copies of System.Drawing.Design.dll (+.xml) and System.Drawing.dll (+.xml), the steps I take are:
1. File -> New
2. Select System.Drawing.dll
3. File -> Add Assembly...
4. Select System.Drawing.Design.dll
5. File -> Save Project
6. File -> Remove Assembly
7. Select Yes to refresh

This process completes as expected. Does this work OK at your end? Could you step me through your process so I can reproduce this problem here?
Thank you!

Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/

Locked