If ofd.ShowDialog = Windows.Forms.DialogResult.OK Then
Try
TempImage = Image.FromFile(ofd.FileName)
imagename = ofd.FileName
System.Diagnostics.Process.Start("filetest.exe", imagename)
System.Diagnostics.Process.Start("sobel2.exe", ofd.FileName)
PictureBox1.Image = TempImage
this is my code. sobel2.exe works file with the argument.
but filetest.exe hangs and gives win32 unhandles exception
if i give a proper filename within codes to imagename filetest.exe works fine..
i can't figure out why this is happening for filetest .. while sobel2 is working fine