I'm working with the GDI+ and when I go to load an image it gives me the error

I have tried declaring tImage different types (i.e. Bitmap) and still nothing. What's really interesting about this is that if I step through the program line by line, it works just fine. What gives?

Here's my code:

VB Code:
  1. Imports System.IO
  2. Imports System.Windows.Forms
  3. Imports System.Drawing
  4. Imports System.Drawing.Imaging
  5.  
  6. ...
  7.  
  8. Private tImage As Image
  9.  
  10. Private Sub LoadImage(ByVal ImagePath as String)
  11.  
  12.             tImage = Image.FromFile(ImagePath)
  13.  
  14. End Sub