[Mono-dev] patch to monop to catch exception on Process.Start
John Luke
john.luke at gmail.com
Wed Sep 21 19:41:24 EDT 2005
Ben Maurer wrote:
> On Wed, 2005-09-21 at 19:24 -0400, John Luke wrote:
>
>> A little patch to catch an exception if gacutil cannot be found.
>>
>
> Why would that happen? (btw, at least on mono, shouldn't we explicitly
> look in `dirname MSCORLIB_LOCATION`/gacutil.exe, so that it works even
> if we are using a mono that's not in the $PATH.
>
>
This was on windows/.net runtime, where gacutil is not in the path by
default (at least it seems so). And
it goes on to display an annoying message box. Why it would happen is
sort of irrelevant here as anytime you
do a Process.Start I think it needs to be in a try catch for various
reasons. I'll leave that other part to you.
More information about the Mono-devel-list
mailing list