Results 1 to 9 of 9

Thread: [RESOLVED] [2005] OverflowException was unhandled

Threaded View

  1. #1

    Thread Starter
    Banned
    Join Date
    Jul 2007
    Posts
    400

    Resolved [RESOLVED] [2005] OverflowException was unhandled

    Hi guys

    I have trouble with the code I have received. I do not understand with the sense at all, the code suppose to be correct and they suppose to be reading the size of the image on my hard disk but the error code shows it didn't make any sense



    Here it the code:

    Code:
            Dim D As New IO.DriveInfo("C")
            Dim Size As Integer = CInt(D.AvailableFreeSpace)
            Size /= 1073741824
            Label16.Text = CStr(Size) & "GB"


    Error I have received: Arithmetic operation resulted in an overflow.




    Any idea?




    Thanks,
    Mark
    Last edited by Mark103; Mar 26th, 2008 at 02:04 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width