Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows Forms
  4. Windows Form DownloadingMenager

Windows Form DownloadingMenager

Scheduled Pinned Locked Moved Windows Forms
csharpdotnetgraphicsdebugginghelp
4 Posts 2 Posters 12 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Pouriya 14176137
    wrote on last edited by
    #1

    Hello guys , I try to create a Download Manager but when I was running my project and I click in start download button after that this error happen. ______________________________________________________________________________________________________

    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.

    ************** Exception Text **************
    System.NullReferenceException: Object reference not set to an instance of an object.
    at DotnetDownloader.frmnewdownload.btnstartdownload_Click(Object sender, EventArgs e) in E:\VisualProject(CSharp)\DownloadMenager\DotnetDownloader\frmnewdownload.cs:line 72
    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.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    ************** Loaded Assemblies **************
    mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3056.0 built by: NET472REL1
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

    DotnetDownloader
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///E:/VisualProject(CSharp)/DownloadMenager/DotnetDownloader/bin/Debug/DotnetDownloader.exe

    System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3056.0 built by: NET472REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

    System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3056.0 built by: NET472REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

    System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3056.0 built by: NET472REL1
    CodeBase: file:///C:/Windows/Mic

    L 3 Replies Last reply
    0
    • P Pouriya 14176137

      Hello guys , I try to create a Download Manager but when I was running my project and I click in start download button after that this error happen. ______________________________________________________________________________________________________

      See the end of this message for details on invoking
      just-in-time (JIT) debugging instead of this dialog box.

      ************** Exception Text **************
      System.NullReferenceException: Object reference not set to an instance of an object.
      at DotnetDownloader.frmnewdownload.btnstartdownload_Click(Object sender, EventArgs e) in E:\VisualProject(CSharp)\DownloadMenager\DotnetDownloader\frmnewdownload.cs:line 72
      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.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

      ************** Loaded Assemblies **************
      mscorlib
      Assembly Version: 4.0.0.0
      Win32 Version: 4.7.3056.0 built by: NET472REL1
      CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

      DotnetDownloader
      Assembly Version: 1.0.0.0
      Win32 Version: 1.0.0.0
      CodeBase: file:///E:/VisualProject(CSharp)/DownloadMenager/DotnetDownloader/bin/Debug/DotnetDownloader.exe

      System.Windows.Forms
      Assembly Version: 4.0.0.0
      Win32 Version: 4.7.3056.0 built by: NET472REL1
      CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

      System
      Assembly Version: 4.0.0.0
      Win32 Version: 4.7.3056.0 built by: NET472REL1
      CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

      System.Drawing
      Assembly Version: 4.0.0.0
      Win32 Version: 4.7.3056.0 built by: NET472REL1
      CodeBase: file:///C:/Windows/Mic

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      frmnewdownload.cs:line 72 You want us to guess what's at that line? Need an NDA?

      "(I) am amazed to see myself here rather than there ... now rather than then". ― Blaise Pascal

      1 Reply Last reply
      0
      • P Pouriya 14176137

        Hello guys , I try to create a Download Manager but when I was running my project and I click in start download button after that this error happen. ______________________________________________________________________________________________________

        See the end of this message for details on invoking
        just-in-time (JIT) debugging instead of this dialog box.

        ************** Exception Text **************
        System.NullReferenceException: Object reference not set to an instance of an object.
        at DotnetDownloader.frmnewdownload.btnstartdownload_Click(Object sender, EventArgs e) in E:\VisualProject(CSharp)\DownloadMenager\DotnetDownloader\frmnewdownload.cs:line 72
        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.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

        ************** Loaded Assemblies **************
        mscorlib
        Assembly Version: 4.0.0.0
        Win32 Version: 4.7.3056.0 built by: NET472REL1
        CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

        DotnetDownloader
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///E:/VisualProject(CSharp)/DownloadMenager/DotnetDownloader/bin/Debug/DotnetDownloader.exe

        System.Windows.Forms
        Assembly Version: 4.0.0.0
        Win32 Version: 4.7.3056.0 built by: NET472REL1
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

        System
        Assembly Version: 4.0.0.0
        Win32 Version: 4.7.3056.0 built by: NET472REL1
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

        System.Drawing
        Assembly Version: 4.0.0.0
        Win32 Version: 4.7.3056.0 built by: NET472REL1
        CodeBase: file:///C:/Windows/Mic

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        E:\VisualProject(CSharp)\DownloadMenager\DotnetDownloader\frmnewdownload.cs:line 72

        You have a reference variable at that line which has not been initialised, so is therefore a NullReference.

        1 Reply Last reply
        0
        • P Pouriya 14176137

          Hello guys , I try to create a Download Manager but when I was running my project and I click in start download button after that this error happen. ______________________________________________________________________________________________________

          See the end of this message for details on invoking
          just-in-time (JIT) debugging instead of this dialog box.

          ************** Exception Text **************
          System.NullReferenceException: Object reference not set to an instance of an object.
          at DotnetDownloader.frmnewdownload.btnstartdownload_Click(Object sender, EventArgs e) in E:\VisualProject(CSharp)\DownloadMenager\DotnetDownloader\frmnewdownload.cs:line 72
          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.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

          ************** Loaded Assemblies **************
          mscorlib
          Assembly Version: 4.0.0.0
          Win32 Version: 4.7.3056.0 built by: NET472REL1
          CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

          DotnetDownloader
          Assembly Version: 1.0.0.0
          Win32 Version: 1.0.0.0
          CodeBase: file:///E:/VisualProject(CSharp)/DownloadMenager/DotnetDownloader/bin/Debug/DotnetDownloader.exe

          System.Windows.Forms
          Assembly Version: 4.0.0.0
          Win32 Version: 4.7.3056.0 built by: NET472REL1
          CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

          System
          Assembly Version: 4.0.0.0
          Win32 Version: 4.7.3056.0 built by: NET472REL1
          CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

          System.Drawing
          Assembly Version: 4.0.0.0
          Win32 Version: 4.7.3056.0 built by: NET472REL1
          CodeBase: file:///C:/Windows/Mic

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Have you tried putting debugger at this line and see why you getting no value?

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups