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

i have another question, after i am selecting one file and then executing the sobel2.exe..
next when i am selecting another file and executing sobel.exe.. the output doesnot change.
only when i stop debug and run it again then it gives the new output..
why is this happening?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.