[Mono-dev] Mach-o based exception handling

latency latency at gmx.de
Sun Aug 27 01:15:37 EDT 2006


Hi,

I don't know how your Application runs that scripts, but from your short 
description it seems that all of your user-scripts are being run from the 
same application domain as the hosting programm.

If you try to adopt your programm that those scripts are being run in separate 
application domains exceptions in your script won't crash the whole programm, 
just one single domain will die and invoke an UnhandledException event. That 
event could then be taken to put that exception into whatever form or system 
you might require.

See:
http://msdn2.microsoft.com/en-us/library/ms173138.aspx
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemAppDomainClassTopic.asp

Kind Regards,
Valentin.

On Friday 25 August 2006 20:52, Joachim Ante wrote:
> Hi,
>
> At the moment, if you are writing an application with mono on os x that has
> any kind of gui and you encounter a null reference exception, the
> application will pause for around 5 seconds, then OS X brings up a crash
> report dialog. This is a pretty big issue for us, since our users can write
> arbitrary scripts thus they might end up producing null reference
> exceptions.
>
>
> The problem is partly on apple's side (since a signal handler is installed,
> no crash report should come up), but it hasn't been fixed yet and probably
> will not be fixed in the future either.
>
> There is a solution for it and that is using Mach-o based exceptions
> instead of signals. This will get rid of the pause and the crash dialog
> popping up.
>
> So we are extremely interested in getting this into mono, but filing the
> bug around 1 year ago it's still not fixed and i understand if it is not
> criticial for mono development.
>
> So instead i am looking for some person who has experience with mono and is
> willing to implement this feature for a 400$. If anyone is interested
> please contact me.
>
> Best regards
> Joachim Ante
>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list



More information about the Mono-devel-list mailing list