[Mono-dev] patch to monop to catch exception on Process.Start

Ben Maurer bmaurer at ximian.com
Wed Sep 21 19:42:16 EDT 2005


On Wed, 2005-09-21 at 19:41 -0400, John Luke wrote:
> 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.

Sounds reasonable, check it in.

-- Ben




More information about the Mono-devel-list mailing list