I'm using inkscape in command line by launching it from another application.
In VB, that look likes this :
procInfo = New ProcessStartInfo
With procInfo
.FileName = "C:\Program Files\Inkscape\inkscape.exe"
.Arguments = "-f " & docMapath & "commandes\temp_generation\" & file & " -A " & docMapath & "commandes\temp_generation\" & com.Id & "_" & i & ".pdf"
.RedirectStandardError = True
.UseShellExecute = False
End With
proc = Process.Start(procInfo)
Now the problem is when inkscape encounter an hard exception (like runtime error). I want to catch it in my application without blocking all the process, and without seeing the error anywhere.
I can catch it easily, by using this :
erreur = proc.StandardError.ReadToEnd
But, I can't find a way to avoid inkscape throwing error message like this :

And the problem is that my application stop to run until I click on the "ok" button from the error message box (I suppose it's related to the StandardError.ReadToEnd)
I try to add different command (I thought -z will solve the problem (-z = without gui) but it doesn't), to see if there is an option to set to my process when I'm starting it but with no success. Does anyone have an idea to solve this problem ?
Thx