[IronPython] Silverlight: Cannot cast from 'System.Nullable`1[System.Boolean]' to 'System.Boolean'

2008-05-17 Thread Michael Foord
This is cool. I have a checkbox in my silverlight UI. I have a code path that does: if self.remember_me.IsChecked: PutStored(username, password) The *second* time through this code path it blows up with the exception below. I can fix it by changing the test to: if self.remember_me.IsChecked

Re: [IronPython] Custom Host - Import CLR fails

2008-05-17 Thread Dino Viehland
This indicates we're generating invalid IL. The best way to debug this is to enable the SaveAssemblies option which will cause us to save the code to disk. Programmatically you can do this via Snippets.Shared.SaveSnippets = true. When the process is finished you should then call Snippets.Shar

Re: [IronPython] Custom Host - Import CLR fails

2008-05-17 Thread Ben Hall
Hi Dino, Thanks for your reply. Spent all day trying to debug the problem. I have the code working in a POC, I have it working in my UI but my unit tests are failing. The exception being raised is (different to before): Unhandled Exception System.TypeInitializationException: The type initial