System.NullReferenceException was unhandled HResult=-2147467261 Message=Object reference not set to an instance of an object. Source=Microsoft.V

  • Thread starter Thread starter Khawaja Rizwan
  • Start date Start date
K

Khawaja Rizwan

Guest
guys can anyone tel me why iam getting this type of exception reply ASAP


System.NullReferenceException was unhandled
HResult=-2147467261
Message=Object reference not set to an instance of an object.
Source=Microsoft.VisualBasic.PowerPacks.Vs
StackTrace:
at Microsoft.VisualBasic.PowerPacks.Utility.WidenPath(GraphicsPath& path, Int32 width)
at Microsoft.VisualBasic.PowerPacks.LineShape.GetRegionLine(Boolean flag)
at Microsoft.VisualBasic.PowerPacks.LineShape.GetRegionInternal(RegionType type)
at Microsoft.VisualBasic.PowerPacks.Shape.GetInvalidateRegion()
at Microsoft.VisualBasic.PowerPacks.LineShape.SetEndPoint(Int32 x, Int32 y, Boolean invalidate)
at Microsoft.VisualBasic.PowerPacks.LineShape.set_X2(Int32 value)
at POSMainForm.frmPrintReceipt.InitializeComponent() in C:\Users\Roman\Documents\Visual Studio 2015\Projects\POS_ERIC\POS_CSHARP\POSMain\POSMainForm\frmPrintReceipt.Designer.cs:line 273
at POSMainForm.frmPrintReceipt..ctor(String invoiceNo) in C:\Users\Roman\Documents\Visual Studio 2015\Projects\POS_ERIC\POS_CSHARP\POSMain\POSMainForm\frmPrintReceipt.cs:line 21
at POSMainForm.frmPayment.txtCash_KeyPress(Object sender, KeyPressEventArgs e) in C:\Users\Roman\Documents\Visual Studio 2015\Projects\POS_ERIC\POS_CSHARP\POSMain\POSMainForm\frmPayment.cs:line 72
at System.Windows.Forms.Control.OnKeyPress(KeyPressEventArgs e)
at System.Windows.Forms.MaskedTextBox.OnKeyPress(KeyPressEventArgs e)
at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
at System.Windows.Forms.Control.ProcessKeyMessage(Message& m)
at System.Windows.Forms.MaskedTextBox.ProcessKeyMessage(Message& m)
at System.Windows.Forms.Control.WmKeyChar(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.TextBoxBase.WndProc(Message& m)
at System.Windows.Forms.MaskedTextBox.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.RunDialog(Form form)
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at System.Windows.Forms.Form.ShowDialog()
at POSMainForm.frmPOS.btnSettlepayment_Click(Object sender, EventArgs e) in C:\Users\Roman\Documents\Visual Studio 2015\Projects\POS_ERIC\POS_CSHARP\POSMain\POSMainForm\frmPOS.cs:line 538
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.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.RunDialog(Form form)
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at System.Windows.Forms.Form.ShowDialog()
at POSMainForm.frmMain.button4_Click(Object sender, EventArgs e) in C:\Users\Roman\Documents\Visual Studio 2015\Projects\POS_ERIC\POS_CSHARP\POSMain\POSMainForm\frmMain.cs:line 80
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.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 POSMainForm.Program.Main() in C:\Users\Roman\Documents\Visual Studio 2015\Projects\POS_ERIC\POS_CSHARP\POSMain\POSMainForm\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.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:

Continue reading...
 

Similar threads

M
Replies
0
Views
114
Mani25
M
D
Replies
0
Views
91
Decompressor
D
G
Replies
0
Views
160
Graham Skan
G
N
Replies
0
Views
99
Narayan Pinamaraju
N
Back
Top