If I say you to cut a paper of dimension 5m by 5m then surely you would do that. But then I ask you to cut 1000 paper of the same dimension. Then you won't do the measuring for 1000 times, obviously you would make a frame of 5m by 5m and then with the help of it you would be able to cut 1000 papers in less time. So, what you did is you made a framewok which would do that type of task. So, instead of performing same type of task again and again for same type of applications, what you do is you create a framework having all those facilities together in one nice packet and hence providing the abstraction for your application and more importantly many applications.
Can anyone please provide a same way example about library.
“That which does not kill us makes us stronger.” ― Friedrich Nietzsche
Dim FileName AsString = System.IO.Path.GetFileName(FileUploadBenGrid.PostedFile.FileName)
Dim FilePath AsString = System.IO.Path.GetFullPath((FileUploadBenGrid.PostedFile.FileName))
'Read file into a stream
Dim fs As FileStream = New FileStream(FilePath, FileMode.Open, FileAccess.Read)
Dim br As BinaryReader = New BinaryReader(fs)
Dim bytes AsByte() = br.ReadBytes(Convert.ToInt32(fs.Length))
Select a file to upload
I'm hoping someone here can help me. I have been asked by a business unit in my company to find the cause of why a dotNet program cannot run on a certain Dell model laptop. It runs fine on a newly image laptop of all different Dell model of laptops and desktop, but for some reason on a Dell M8600 it fails to open. The M8600 has the same .Net 4.5.2 install. Could there be a missing driver that is needed to load a dotNet executable?
I'm sorry if any of my statements don't make sense. I'm not a programmer or scripter. So I am way out of my comfort zone here. I am completely loss as what could be the reason why the program is failing on a particular model of laptop.
I was told that the program was written in dotNet 4.0. I'll get the error message and application event logs tomorrow when I go back into the office.
This is from the detail error message when the application is opened:
Problem Event Name: CLR20r3
Problem Signature 01: SPAAR.exe
Problem Signature 02: 18.104.22.168
Problem Signature 03: 54216f68
Problem Signature 04: SPAAR
Problem Signature 05: 22.214.171.124
Problem Signature 06: 54216f68
Problem Signature 07: df
Problem Signature 08: 71
Problem Signature 09: System.NullReferenceException
OS Version: 6.1.7601.2.1.0.256.4
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceException
at SPAAR.Form1.Form1_SizeChanged(System.Object, System.EventArgs)
at System.Windows.Forms.Control.UpdateBounds(Int32, Int32, Int32, Int32, Int32, Int32)
at System.Windows.Forms.Control.UpdateBounds(Int32, Int32, Int32, Int32)
at System.Windows.Forms.Control.SetBoundsCore(Int32, Int32, Int32, Int32, System.Windows.Forms.BoundsSpecified)
at System.Windows.Forms.Form.SetBoundsCore(Int32, Int32, Int32, Int32, System.Windows.Forms.BoundsSpecified)
at System.Windows.Forms.Control.ScaleControl(System.Drawing.SizeF, System.Windows.Forms.BoundsSpecified)
at System.Windows.Forms.ScrollableControl.ScaleControl(System.Drawing.SizeF, System.Windows.Forms.BoundsSpecified)
at System.Windows.Forms.Form.ScaleControl(System.Drawing.SizeF, System.Windows.Forms.BoundsSpecified)
at System.Windows.Forms.Control.ScaleControl(System.Drawing.SizeF, System.Drawing.SizeF, System.Windows.Forms.Control)
at System.Windows.Forms.ContainerControl.Scale(System.Drawing.SizeF, System.Drawing.SizeF, System.Windows.Forms.Control)
at System.Windows.Forms.ContainerControl.PerformAutoScale(Boolean, Boolean)
The exception, "System.NullReferenceException", says that you're trying to get/set a property of call a method on an object that your code is ASSUMING exists, but doesn't. You're not checking for the existence of the object you're trying to do something with before you try and use it.
Somewhere in the method "Form1_SizeChanged", you goofed.