Thanks Dino! On Sat, Jul 18, 2009 at 12:45 PM, Dino Viehland<di...@microsoft.com> wrote: > I think you need an instance of Settings - e.g. > Settings().ALWAYS_DECODE_OBJECTS. > > That being said the exception you're getting is a bug - it should be telling > you > that you need an instance. > > I've created bug 23545: > http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=23545 > > > >> -----Original Message----- >> From: users-boun...@lists.ironpython.com [mailto:users- >> boun...@lists.ironpython.com] On Behalf Of Count László de Almásy >> Sent: Friday, July 17, 2009 11:32 PM >> To: users@lists.ironpython.com >> Subject: [IronPython] Trying to set field to bool, get "TypeError: >> Argument cannot be null." >> >> I need some help understanding what I'm doing wrong here. >> Settings.ALWAYS_DECODE_OBJECTS is set in C# like the following: >> >> public bool ALWAYS_DECODE_OBJECTS = true; >> >> But trying to set it to "True" in IPy blows up with the following >> traceback: >> >> IronPython 2.0 (2.0.0.0) on .NET 2.0.50727.1433 >> Type "help", "copyright", "credits" or "license" for more information. >> >>> import clr >> >>> clr.AddReference("OpenMetaverse.dll") >> >>> clr.AddReference("OpenMetaverseTypes.dll") >> >>> from OpenMetaverse import * >> >>> >> >>> Settings.ALWAYS_DECODE_OBJECTS = True >> Traceback (most recent call last): >> File "<stdin>", line 1, in <module> >> File "Microsoft.Scripting.Core", line unknown, in Convert >> File "Microsoft.Scripting.Core", line unknown, in Convert >> File "Microsoft.Scripting.Core", line unknown, in RequiresCanRead >> TypeError: Argument cannot be null. >> Parameter name: expression >> >>> >> >> -- >> Cheers, László >> _______________________________________________ >> 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 >
-- Cheers, László _______________________________________________ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com