On Oct 12, 2011, at 4:55 AM, Markus Schaber wrote:

>> Sorry for disturbing again, but I'm a little bit confused about the
>> ErrorListeners from the Hosting API.
>> 
>> For compilation of a ScriptSource, I can pass an ErrorListener which gets
>> the errors and warnings, but it seems that I cannot pass an ErrorListener
>> for the execution of the ScriptSource.
>> 
>> My guess is that the ErrorListener passed to the compilation is referenced
>> from the compiled ScriptSource. Can you confirm hat? Or did I miss
>> something?
> 
> This guess seems wrong - it seems that the warnings are simply spit out on 
> stderr by default.

ErrorListener is only used for compiler errors; if you want to capture runtime 
errors you can put a try/catch around the call to ScriptSource.Execute().

~Jimmy
_______________________________________________
Ironpython-users mailing list
Ironpython-users@python.org
http://mail.python.org/mailman/listinfo/ironpython-users

Reply via email to