[Ironruby-core] IronRuby assemblies

2011-04-10 Thread James Leskovar
Hey all, I've noticed that the IronRuby 1.0+ installer copies all of the requisite libraries into the GAC. However, it would also be nice if the installer also updated the registry to allow the libraries to show up in the "Add References" dialog in VS2010. See http://support.microsoft.com/kb/30614

Re: [Ironruby-core] Handling runtime errors in embedded applications

2010-01-01 Thread James Leskovar
Hmm, UnhandledExceptionEventArgs seems to only have two properties, ExceptionObject and IsTerminating, both of which are read-only. After a bit of investigation, there is another type of unhandled-exception handler, set with Application.ThreadException, which can prevent application termination. Ho

Re: [Ironruby-core] Handling runtime errors in embedded applications

2009-12-29 Thread James Leskovar
Unfortunantly, the problem with setting the unhandled exception event is that there's no way to 'recover' from the exception; the application terminates immediately after the event. Additionally, this method doesn't seem to work for exceptions within threads: class Program { static void

[Ironruby-core] Handling runtime errors in embedded applications

2009-12-26 Thread James Leskovar
Hi there, So my application is basically a lightweight IDE for IronRuby, built in C#, with the idea that users should be able to quickly edit and prototype ruby scripts. Part of the application's requirements is to have the ability to handle compilation/syntax errors and runtime exceptions, as wel

Re: [Ironruby-core] Leveraging StdLib.Win32API class

2009-12-04 Thread James Leskovar
Hi Tomas, I've been playing around with DynamicMethod and generating IL at runtime, with varying levels of success. Currently I'm using DynamicMethod to generate the IL to load arguments, load function address, calli and ret. My script gets access to the DynamicMethod object, which gets passed

[Ironruby-core] Leveraging StdLib.Win32API class

2009-11-29 Thread James Leskovar
Hi all, I'm working on using metasm (http://metasm.cr0.org/) with IronRuby in order to generate and ultimately execute code at runtime. At the moment, I've been successful in using metasm to get back a string containing the encoded x86 instruction opcodes. The next step would be to allocate memory