[IronPython] Viewlets: Any F# experts here?

Michael Foord fuzzyman at voidspace.org.uk
Fri Jun 27 03:06:04 PDT 2008


Shri Borde wrote:
> Actually, -X:ExceptionDetail is the more important option. Could you try that? It will you the System.Exception stack trace.
>   

Hmmm... still not sure it is more useful.

C:\compile\VSLab>C:\compile\IronPython-2.0B3\ipy.exe -X:ExceptionDetail 
viewlet.
py
Object reference not set to an instance of an object.
   at System.Windows.Forms.Control.get_Properties()
   at System.Windows.Forms.Control.get_Controls()
   at VSLabFSICore.Viewlet..ctor()
   at GraphViewlet.GraphControl..ctor()
   at _stub_$22##20(Closure , CallSite , CodeContext , Object )
   at _stub_MatchCaller(Object , CallSite , Object[] )
   at Microsoft.Scripting.Actions.CallSite`1.UpdateAndExecute(Object[] args)
   at 
Microsoft.Scripting.Actions.UpdateDelegates.Update2[T,T0,T1,TRet](CallSite
 site, T0 arg0, T1 arg1)
   at S$2.Initialize(CodeContext )
   at IronPython.Hosting.PythonCommandLine.RunFileWorker(String fileName)
   at IronPython.Hosting.PythonCommandLine.RunFile(String fileName)
SystemError: Object reference not set to an instance of an object.
C:\compile\VSLab>


> -----Original Message-----
> From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Michael Foord
> Sent: Thursday, June 26, 2008 3:39 PM
> To: Discussion of IronPython
> Subject: Re: [IronPython] Viewlets: Any F# experts here?
>
> Shri Borde wrote:
>   
>> Michael, what is the CLR stack trace (-X:ShowClrExceptions)?
>>
>>     
>
> Not much more useful I'm afraid.
>
>
> C:\compile\VSLab>C:\compile\IronPython-2.0B3\ipy.exe
> -X:ShowClrExceptions viewle
> t.py
> Traceback (most recent call last):
>   File "viewlet.py", line 4, in viewlet.py
>   File "vslabviewlets", line unknown, in .ctor
>   File "vslabfsicore", line unknown, in .ctor
>   File "System.Windows.Forms", line unknown, in get_Controls
>   File "System.Windows.Forms", line unknown, in get_Properties
> SystemError: Object reference not set to an instance of an object.
> CLR Exception:
>     NullReferenceException
> :
> Object reference not set to an instance of an object.
>
> Michael
>
>   
>> -----Original Message-----
>> From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Jimmy Schementi
>> Sent: Thursday, June 26, 2008 3:04 PM
>> To: Discussion of IronPython
>> Cc: Luke Hoban
>> Subject: Re: [IronPython] Viewlets: Any F# experts here?
>>
>> Adding Luke Hoban, the F# ninja at Microsoft =)
>>
>> Luke, any ideas? Swing by my office if you are confused.
>>
>>
>>     
>>> -----Original Message-----
>>> From: users-bounces at lists.ironpython.com [mailto:users-
>>> bounces at lists.ironpython.com] On Behalf Of Michael Foord
>>> Sent: Thursday, June 26, 2008 2:59 PM
>>> To: Discussion of IronPython
>>> Subject: [IronPython] Viewlets: Any F# experts here?
>>>
>>> The viewlets that come with VSLab look *really* cool. They're based on
>>> F# so I decided to see if they could be used from IronPython.
>>>
>>> http://www.codeplex.com/vslab
>>>
>>> The dependencies are pretty hefty. You need F# installed *and* Managed
>>> DirectX (June 2008 SDK ~450mb seems to fulfil the dependency).
>>>
>>> To get at the viewlet assemblies you need Visual Studio Pro installed
>>> as
>>> well, but they can be extracted from the VSLabs msi installer without
>>> VS
>>> Pro.
>>>
>>> Ok, so with all the dependencies installed I attempt to use them - and
>>> *boom*. Anyone here got any ideas?
>>>
>>> IronPython 2.0 Beta (2.0.0.3000) on .NET 2.0.50727.1434
>>> Copyright (c) Microsoft Corporation. All rights reserved.
>>>  >>> import clr
>>>  >>> clr.AddReference('vslabfsicore')
>>>  >>> clr.AddReference('vslabviewlets')
>>>  >>> clr.AddReference('vslabcore')
>>>  >>> from GraphViewlet import GraphControl
>>>  >>> g = GraphControl()
>>> Traceback (most recent call last):
>>>   File "<stdin>", line 1, in <module>
>>>   File "vslabviewlets", line unknown, in .ctor
>>>   File "vslabfsicore", line unknown, in .ctor
>>>   File "System.Windows.Forms", line unknown, in get_Controls
>>>   File "System.Windows.Forms", line unknown, in get_Properties
>>> SystemError: Object reference not set to an instance of an object.
>>>
>>>
>>> Interesting that the explosion is inside winforms. Referencing that
>>> assembly first makes knows difference.
>>>
>>> Michael Foord
>>>
>>>
>>> --
>>> http://www.ironpythoninaction.com/
>>> http://www.voidspace.org.uk/
>>> http://www.trypython.org/
>>> http://www.ironpython.info/
>>> http://www.theotherdelia.co.uk/
>>> http://www.resolverhacks.net/
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.ironpython.com
>>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>>
>>>       
>> _______________________________________________
>> Users mailing list
>> Users at lists.ironpython.com
>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.ironpython.com
>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>
>>     
>
>
> --
> http://www.ironpythoninaction.com/
> http://www.voidspace.org.uk/
> http://www.trypython.org/
> http://www.ironpython.info/
> http://www.theotherdelia.co.uk/
> http://www.resolverhacks.net/
>
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>   


-- 
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/
http://www.trypython.org/
http://www.ironpython.info/
http://www.theotherdelia.co.uk/
http://www.resolverhacks.net/



More information about the Users mailing list