I never solved this, but decided to go the other way and host powershell inside IronPython instead. Thanks,
Steve On Tue, Jan 13, 2009 at 4:11 PM, Michael Foord <fuzzy...@voidspace.org.uk>wrote: > Sorry for the late reply Stephen - I'm really bogged down in the last > phases of copy editing. Did you get this sorted? > > Michael > > Stephen Ng wrote: > >> Thanks for the help.... I'll get the pdf version of the book this weekend >> and read up to try to get more of a clue. Am I using Invoke-GenericMethod >> correctly? >> >> PS C:\Program Files\IronPython 2.0> & 'C:\Program Files\IronPython >> 2.0\Invoke-GenericMethod.ps1' $py Execute String '3' >> Exception calling "Invoke" with "2" argument(s): "Exception has been >> thrown by the target of an invocation." >> At C:\Program Files\IronPython 2.0\Invoke-GenericMethod.ps1:96 char:30 >> + $newMethod.Invoke( <<<< $instance, $methodParameters) >> PS C:\Program Files\IronPython 2.0> & 'C:\Program Files\IronPython >> 2.0\Invoke-GenericMethod.ps1' $py Execute String 'print 3' >> Exception calling "Invoke" with "2" argument(s): "Exception has been >> thrown by the target of an invocation." >> At C:\Program Files\IronPython 2.0\Invoke-GenericMethod.ps1:96 char:30 >> + $newMethod.Invoke( <<<< $instance, $methodParameters) >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Users mailing list >> Users@lists.ironpython.com >> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com >> >> > > > -- > http://www.ironpythoninaction.com/ > http://www.voidspace.org.uk/blog > > > _______________________________________________ > Users mailing list > Users@lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com >
_______________________________________________ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com