467,892 Members | 1,868 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,892 developers. It's quick & easy.

File System Watcher & Bitmap problem

Hi,

I have the following method:

private void fileSystemWatcher1_Created(object sender,
System.IO.FileSystemEventArgs e)
{
string tmpPath = e.FullPath;
tmpPath = tmpPath.Replace("\\", "\\\\");
Bitmap testtest = new Bitmap(tmpPath);
}
and I set the above code to monitor a folder like: E:\Word\Data\i2938
then I use photoshop and save a(many) bmp into that folder. It give me
the following error:

************** Exception Text **************
System.ArgumentException: Invalid parameter used.
at System.Drawing.Bitmap..ctor(String filename)
at Test.testprogram.fileSystemWatcher1_Created(Object sender,
FileSystemEventArgs e) in

Can someone please help?

Thank you in advance :)
Nov 16 '05 #1
  • viewed: 1024
Share:

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.