Inkscape error message (disable it ?)

Post questions on how to use or achieve an effect in Inkscape.
aypierre

Inkscape error message (disable it ?)

Postby aypierre » Tue Nov 30, 2010 12:40 am

Hi,

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 :
Image

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

chriswww
Posts: 383
Joined: Fri Nov 19, 2010 3:04 pm

Re: Inkscape error message (disable it ?)

Postby chriswww » Tue Nov 30, 2010 7:55 am

has nothing to do with standard error i suspect. inkscape terminates unexpectedly and all your input/output/error channels are gone already, as msvcrt dll catches it. you would need to setup some advanced handler on msvcrt to catch it.

aypierre

Re: Inkscape error message (disable it ?)

Postby aypierre » Wed Dec 01, 2010 7:23 pm

chriswww wrote:has nothing to do with standard error i suspect. inkscape terminates unexpectedly and all your input/output/error channels are gone already, as msvcrt dll catches it. you would need to setup some advanced handler on msvcrt to catch it.


Allright thx, I'll explore that way


Return to “Help with using Inkscape”