تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
[VB.NET] بخصوص مشكله System.NullReferenceException
#1
السلام عليكم ورحمة الله

ازعجتني هذه المشكله

الان في احتلاف في المسج


إقتباس :Exception thrown: 'System.NullReferenceException' in System.Windows.Forms.dll
System.Transactions Critical: 0 : <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Critical"><TraceIdentifier>http://msdn.microsoft.com/TraceCodes/System/ActivityTracing/2004/07/Reliability/Exception/Unhandled</TraceIdentifier><Description>Unhandled exception</Description><AppDomain>BKLog.exe</AppDomain><Exception><ExceptionType>System.NullReferenceException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>Object reference not set to an instance of an object.</Message><StackTrace>   at System.Windows.Forms.RichTextBox.EditStreamProc(IntPtr dwCookie, IntPtr buf, Int32 cb, Int32&amp;amp; transferred)
   at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at System.Windows.Forms.NativeWindow.DefWndProc(Message&amp;amp; m)
   at System.Windows.Forms.Control.DefWndProc(Message&amp;amp; m)
   at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.TextBoxBase.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.RichTextBox.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp;amp; m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Forms.UnsafeNativeMethods.PeekMessage(MSG&amp;amp; msg, HandleRef hwnd, Int32 msgMin, Int32 msgMax, Int32 remove)
   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 Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
   at BKLog.My.MyApplication.Main(String[] Args) in :line 81</StackTrace><ExceptionString>System.NullReferenceException: Object reference not set to an instance of an object.
   


في الاخير اعتقد يقولي وين المشكله
إقتباس :   at Log.My.MyApplication.Main(String[] Args) in :line 81</ExceptionString></Exception></TraceRecord>

بس كيف اوصل الى 
My.MyApplication.Main(String[] Args) in :line 81
افيدوني بارك الله فيكم

   
الرد
تم الشكر بواسطة:
#2
الخطأ في فورم الاقلاع السطر رقم 81 .
الرد
تم الشكر بواسطة: dubai.eig
#3
Display line numbers in code
  1. On the menu bar, choose Tools > Options. Expand the Text Editor node, and then select either the language you're using or All Languages to turn on line numbers in all languages. (Or, type line number in the search box and choose Turn line numbers on or off from the results.)
  2. Select the Line numbers checkbox.

الرد
تم الشكر بواسطة: asemshahen5 , dubai.eig , dubai.eig



التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 2 ) ضيف كريم