تقييم الموضوع :
  • 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
افيدوني بارك الله فيكم

[attachment=22831]
الرد }}}
تم الشكر بواسطة:
#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.
    [صورة مرفقة: line-numbers-option.png?view=vs-2019]
الرد }}}
تم الشكر بواسطة: asemshahen5 , dubai.eig , dubai.eig


المواضيع المحتمل أن تكون متشابهة .
الموضوع : الكاتب الردود : المشاهدات : آخر رد
  [VB.NET] سؤال بخصوص الترقيم التلقائي اليدوي yosif 5 337 16-04-26, 01:05 AM
آخر رد: أبو خالد الشكري
  فائدة بخصوص التعامل مع علامات التنصيص مع {سؤال} justforit 4 520 02-11-25, 11:19 PM
آخر رد: justforit
  [VB.NET] بخصوص تشفير FoxLearn.License h2551996 1 777 17-07-25, 09:18 PM
آخر رد: h2551996
  [VB.NET] استفسار بخصوص البحث في RichTextBox SerialPort dubai.eig 2 829 18-06-25, 11:09 AM
آخر رد: dubai.eig
  [سؤال] SkinSoft VisualStyler.Net v2.4 طلب بخصوص ali.alfoly 6 1,027 24-12-24, 03:23 PM
آخر رد: عبد العزيز البسكري
  ابغي ارجع قيمة الداتا قراد فيو من جديد عندي مشكله khalidalwdi 3 802 05-12-24, 02:21 AM
آخر رد: aljzazy
  [سؤال] بخصوص حفظ my settings محمد العامر 8 917 12-11-24, 08:49 PM
آخر رد: محمد العامر
  [سؤال] مشكله في تطبيق في زامارين سي شارب حسن الجلب 0 404 07-11-24, 11:36 PM
آخر رد: حسن الجلب
  [سؤال] بخصوص حفظ اعدادات المشروع في Settings محمد العامر 4 708 07-11-24, 05:34 AM
آخر رد: محمد العامر
  سؤال بخصوص القريد DOX.1 6 920 31-08-24, 06:24 PM
آخر رد: justforit

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


يقوم بقرائة الموضوع: