Common Language Runtime detected an invalid program

LexiconLexicon Posts: 76 Bronze 3
This happens every time I try and profile my application :

there is nothing special we are doing, the 'Elist' class I am using is just a customised class using generics that we use to replace list and sorted lists etc. (available if you can send me private email address)

it is *really* frustrating setting a day aside and then not being able to test anything, so any help would be really appreciated.

thanks

Paul.


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

************** Exception Text **************
System.InvalidProgramException: Common Language Runtime detected an invalid program.
at Event_Model.EList`1.AddRange(IEnumerable`1 collection)
at Event_Model.EList`1.From(IEnumerable`1 values) in D:\Source\Event Model\Event Model\Rapid3\Classes\General\EList.vb:line 251
at Event_Model.Common_Converters.BreakQari(String qari, Int32& qID, Int32& aID, Int32& rID, Int32& Index) in D:\Source\Event Model\Event Model\Rapid3\Classes\ToBeMerged\CommonCoverters.vb:line 20
at Event_Model.BuildersDefaults.GetAnswerDefault(String qari) in D:\Source\Event Model\Event Model\Rapid3\Classes\Rapid\BuildersDefaults.vb:line 48
at Event_Model.Questions.GetDefaultAnswer(String qari) in D:\Source\Event Model\Event Model\Rapid3\Classes\Rapid\Questions.vb:line 114
at Event_Model.Answers.AddAnswer(Int32 questionID, Int32 Area, Int32 room, Int32 index) in D:\Source\Event Model\Event Model\Rapid3\Classes\Rapid\Answers.vb:line 82
at Event_Model.Rapidv3.CreateGridFromQuestions(Int32 nodeLevel, String headingName, EList`1 questionList, QuestionMethod method, Int32 areaID, Int32 roomID, Int32 index) in D:\Source\Event Model\Event Model\Rapid3\Forms\Rapidv3.Form.vb:line 267
at Event_Model.Rapidv3.LoadQuestionsToGrid(Int32 headingID) in D:\Source\Event Model\Event Model\Rapid3\Forms\Rapidv3.Form.vb:line 174
at Event_Model.Rapidv3.headGrid_AfterRowColChange(Object sender, RangeEventArgs e) in D:\Source\Event Model\Event Model\Rapid3\Forms\Rapidv3.Form.vb:line 114
at C1.Win.C1FlexGrid.C1FlexGridBase.OnAfterRowColChange(RangeEventArgs e)
at C1.Win.C1FlexGrid.C1FlexGridBase.be()
at C1.Win.C1FlexGrid.C1FlexGridBase.OnGridChanged(Object sender, GridChangedEventArgs e)
at C1.Win.C1FlexGrid.C1FlexGrid.OnGridChanged(Object sender, GridChangedEventArgs e)
at C1.Win.C1FlexGrid.w.a8(GridChangedTypeEnum A_0, Int32 A_1, Int32 A_2, Int32 A_3, Int32 A_4)
at C1.Win.C1FlexGrid.w.bm(GridChangedTypeEnum A_0)
at C1.Win.C1FlexGrid.h.c(C1FlexGridBase A_0, CellRange A_1, Boolean A_2)
at C1.Win.C1FlexGrid.C1FlexGridBase.Select(CellRange rg, Boolean show)
at C1.Win.C1FlexGrid.y.ad(MouseEventArgs A_0)
at C1.Win.C1FlexGrid.y.ah(MouseEventArgs A_0)
at C1.Win.C1FlexGrid.C1FlexGridBase.OnMouseDown(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at C1.Win.C1FlexGrid.Util.BaseControls.ScrollableControl.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.1434 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
Event Model
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///D:/Source/Event%20Model/Event%20Model/bin/Debug/Event%20Model.exe
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.1434 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
RedGate.Profiler.Instrumentation3
Assembly Version: 3.0.0.0
Win32 Version: 3.0.0.0
CodeBase: file:///C:/Windows/assembly/GAC/RedGate.Profiler.Instrumentation3/3.0.0.0__dfe6a4d9ee4c82c0/RedGate.Profiler.Instrumentation3.dll
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/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.1434 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/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.1434 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
DevExpress.Utils.v8.1
Assembly Version: 8.1.1.0
Win32 Version: 8.1.1.0
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/DevExpress.Utils.v8.1/8.1.1.0__9b171c9fd64da1d1/DevExpress.Utils.v8.1.dll
DevExpress.Data.v8.1
Assembly Version: 8.1.1.0
Win32 Version: 8.1.1.0
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/DevExpress.Data.v8.1/8.1.1.0__9b171c9fd64da1d1/DevExpress.Data.v8.1.dll
DevExpress.XtraBars.v8.1
Assembly Version: 8.1.1.0
Win32 Version: 8.1.1.0
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/DevExpress.XtraBars.v8.1/8.1.1.0__9b171c9fd64da1d1/DevExpress.XtraBars.v8.1.dll
DevExpress.XtraEditors.v8.1
Assembly Version: 8.1.1.0
Win32 Version: 8.1.1.0
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/DevExpress.XtraEditors.v8.1/8.1.1.0__9b171c9fd64da1d1/DevExpress.XtraEditors.v8.1.dll
C1.Win.C1FlexGrid.2
Assembly Version: 2.6.20071.324
Win32 Version: 2.6.20071.324
CodeBase: file:///D:/Source/Event%20Model/Event%20Model/bin/Debug/C1.Win.C1FlexGrid.2.DLL
DevExpress.BonusSkins.v8.1
Assembly Version: 8.1.1.0
Win32 Version: 8.1.1.0
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/DevExpress.BonusSkins.v8.1/8.1.1.0__95fc6c5621878f0a/DevExpress.BonusSkins.v8.1.dll
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
System.Transactions
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
System.EnterpriseServices
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.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.
Paul.

Comments

Sign In or Register to comment.