A bit of quality time with Reflector shows that there&#39;s a _viewletsProxy object which hasn&#39;t been initialized.&nbsp; You probably need to call VSLabFSICore.Viewlets.Init() first.&nbsp; It&#39;s static, and in the vslabfsicore module.<br>
<br>
<div class="gmail_quote">On Thu, Jun 26, 2008 at 2:58 PM, Michael Foord &lt;<a href="mailto:fuzzyman@voidspace.org.uk">fuzzyman@voidspace.org.uk</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">The viewlets that come with VSLab look *really* cool. They&#39;re based on F# so I decided to see if they could be used from IronPython.<br>
<br><a href="http://www.codeplex.com/vslab" target="_blank">http://www.codeplex.com/vslab</a><br><br>The dependencies are pretty hefty. You need F# installed *and* Managed DirectX (June 2008 SDK ~450mb seems to fulfil the dependency).<br>
<br>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.<br><br>Ok, so with all the dependencies installed I attempt to use them - and *boom*. Anyone here got any ideas?<br>
<br>IronPython 2.0 Beta (2.0.0.3000) on .NET 2.0.50727.1434<br>Copyright (c) Microsoft Corporation. All rights reserved.<br>&gt;&gt;&gt; import clr<br>&gt;&gt;&gt; clr.AddReference(&#39;vslabfsicore&#39;)<br>&gt;&gt;&gt; clr.AddReference(&#39;vslabviewlets&#39;)<br>
&gt;&gt;&gt; clr.AddReference(&#39;vslabcore&#39;)<br>&gt;&gt;&gt; from GraphViewlet import GraphControl<br>&gt;&gt;&gt; g = GraphControl()<br>Traceback (most recent call last):<br>&nbsp;File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;<br>
&nbsp;File &quot;vslabviewlets&quot;, line unknown, in .ctor<br>&nbsp;File &quot;vslabfsicore&quot;, line unknown, in .ctor<br>&nbsp;File &quot;System.Windows.Forms&quot;, line unknown, in get_Controls<br>&nbsp;File &quot;System.Windows.Forms&quot;, line unknown, in get_Properties<br>
SystemError: Object reference not set to an instance of an object.<br><br><br>Interesting that the explosion is inside winforms. Referencing that assembly first makes knows difference.<br><br>Michael Foord<br><br><br>-- <br>
<a href="http://www.ironpythoninaction.com/" target="_blank">http://www.ironpythoninaction.com/</a><br><a href="http://www.voidspace.org.uk/" target="_blank">http://www.voidspace.org.uk/</a><br><a href="http://www.trypython.org/" target="_blank">http://www.trypython.org/</a><br>
<a href="http://www.ironpython.info/" target="_blank">http://www.ironpython.info/</a><br><a href="http://www.theotherdelia.co.uk/" target="_blank">http://www.theotherdelia.co.uk/</a><br><a href="http://www.resolverhacks.net/" target="_blank">http://www.resolverhacks.net/</a><br>
<br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.ironpython.com" target="_blank">Users@lists.ironpython.com</a><br><a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br>
</blockquote></div><br>