확인 개체의 인스턴스로 설정되지 않았습니다 : 개체 참조가 개체의 인스턴스로 설정되지 않았습니다.Process.Start를 System.nullreferenceexception : 개체 참조가 나는 내가 System.nullreferenceexception를 얻을 수 있지만 그것을 시작하려고하면 나는 다음과 같은 매개 변수 <p></p>와 프로세스를 시작하려고 있도록
무엇이 잘못 되었나요?
Dim exepath As String = Application.StartupPath + "\bin\ffmpeg.exe"
Dim sr As StreamReader
Dim cmd As String = " -i """ + input + """ -ar 22050 -y """ + output + """"
Dim ffmpegOutput As String
proc.StartInfo.FileName = exepath
proc.StartInfo.Arguments = cmd
proc.StartInfo.UseShellExecute = False
proc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden
proc.StartInfo.RedirectStandardError = True 'redirect ffmpegs output
'to our application
proc.StartInfo.RedirectStandardOutput = True 'we don’t really need this
proc.StartInfo.CreateNoWindow = True
proc.Start()
당신이 보여준 코드는'NullReferenceException'을 던질 수 없습니다. 코드에서 뭔가 더 이상 작동하지 않습니다. –