मैं आवेदन अपवादविंडोज प्रपत्र आवेदन अपवाद
at System.Windows.Forms.CurrencyManager.get_Item(Int32 index)
at System.Windows.Forms.CurrencyManager.get_Current()
at System.Windows.Forms.DataGridView.DataGridViewDataConnection.OnRowEnter(DataGridViewCellEventArgs e)
at System.Windows.Forms.DataGridView.OnRowEnter(DataGridViewCell& dataGridViewCell, Int32 columnIndex, Int32 rowIndex, Boolean canCreateNewRow, Boolean validationFailureOccurred)
at System.Windows.Forms.DataGridView.SetCurrentCellAddressCore(Int32 columnIndex, Int32 rowIndex, Boolean setAnchorCellAddress, Boolean validateCurrentCell, Boolean throughMouseClick)
at System.Windows.Forms.DataGridView.OnCellMouseDown(HitTestInfo hti, Boolean isShiftDown, Boolean isControlDown)
at System.Windows.Forms.DataGridView.OnCellMouseDown(DataGridViewCellMouseEventArgs e)
at System.Windows.Forms.DataGridView.OnMouseDown(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.DataGridView.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.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at MedForms.Program.Main() in F:\Projects\Vstu\MedForms\MedForms\Program.cs:line 18
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
हर बार जब मैं DataGridView पर क्लिक करने की कोशिश मिलता है।
मैं त्रुटि संदेश
पंक्ति{ "सूचकांक -1 एक मूल्य नहीं है।"} (SystemIndexOutOfaRange अपवाद) मिलता है।
Application.Run(new MainForm());
पर
और मैं इसे डिबग करने में सक्षम नहीं हूँ। कृपया मुझे यह जानने में सहायता करें कि ऐसी समस्या का कारण क्या हो सकता है और मैं इसे कैसे डिबग कर सकता हूं?
अपवाद संदेश क्या है? आपका सबसे बड़ा सुराग अभी 'CurrencyManager' का संदर्भ है। मुद्रा के साथ ग्रिड क्या कर रहा है? विशेष रूप से, क्या आप जिस पंक्ति पर क्लिक कर रहे हैं उस डेटा के साथ कुछ भी गलत है? – David
दाऊद के साथ साथ, पूर्ण स्टैक ट्रेस क्या है? इसमें महत्वपूर्ण जानकारी गुम है – NotMe
यह पूर्ण स्टैक ट्रेस है। और कुछ नहीं है ... मैं ऑली में जोड़ सकते हैं कि त्रुटि संदेश (SystemIndexOutOfaRange अपवाद) { "सूचकांक -1 एक मूल्य नहीं है।"} है। मैंने इसे प्रश्न में जोड़ा। – Anton