Jump to content

Need Help Urgently!

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
Bioshox

Bioshox

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 207 posts
Iv created an image resizer with a Watermark feature, but in order to save it it needs to refresh the image, it did it perfectly, but i went back to it today and it was giving me this error

System.ArgumentNullException was unhandled
Message="Value cannot be null. Parameter name: path"
ParamName="path"
Source="mscorlib"

The code that its highlighting as an error is:

picContainer.Image = Image.FromFile(CurrentFile)

when i make it a comment, the program works perfectly (although the preview button dosent update the image) but you can save it just fine with the watermark on it

Any ideas?

#2
Guest_Jordan_*

Guest_Jordan_*
  • Guests
What is CurrentFile value set to? From the error, it would appear it has no value at all.