NullReferenceException on New Connection

Got a problem with Viscosity or need help? Ask here!

cfchase

Posts: 2
Joined: Sun Nov 13, 2011 7:47 am

Post by cfchase » Sun Nov 13, 2011 7:49 am
I can't seem to create a connection on my Windows Machine using Viscosity.

Every time I hit new I get the following exception:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at ResourceLibrary.CfrmAddConnection.adjustDPI()
at ResourceLibrary.CfrmAddConnection..ctor()
at IronPython.NewTypes.ResourceLibrary.CfrmAddConnection_9$9..ctor(PythonType cls)
at lambda_method(Closure , CodeContext , Object )
at IronPython.Runtime.Types.PythonType.FastTypeSite.CallTarget(CallSite site, CodeContext context, Object type)
at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
at DLRCachedCode.addNewConnection$156(Closure , PythonFunction $function, Object self, Object sender, Object e)
at IronPython.Runtime.PythonFunction.FunctionCaller`3.Call3(CallSite site, CodeContext context, Object func, T0 arg0, T1 arg1, T2 arg2)
at CallSite.Target(Closure , CallSite , Object , Object , EventArgs )
at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)
at _Scripting_(Object[] , Object , EventArgs )
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.239 (RTMGDR.030319-2300)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Viscosity
Assembly Version: 0.0.0.0
Win32 Version: 1.3.3.1106
CodeBase: file:///C:/Program%20Files/Viscosity/Viscosity.exe
----------------------------------------
IronPython
Assembly Version: 2.7.0.40
Win32 Version: 2.7.1.0
CodeBase: file:///C:/Program%20Files/Viscosity/IronPython.DLL
----------------------------------------
Viscosity
Assembly Version: 0.0.0.0
Win32 Version: 1.3.3.1106
CodeBase: file:///C:/Program%20Files/Viscosity/Viscosity.dll
----------------------------------------
Microsoft.Scripting
Assembly Version: 1.1.0.20
Win32 Version: 1.1.0.20
CodeBase: file:///C:/Program%20Files/Viscosity/Microsoft.Scripting.DLL
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.236 built by: RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.233 built by: RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
Microsoft.Dynamic
Assembly Version: 1.1.0.20
Win32 Version: 1.1.0.20
CodeBase: file:///C:/Program%20Files/Viscosity/Microsoft.Dynamic.DLL
----------------------------------------
System.Numerics
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
IronPython.Modules
Assembly Version: 2.7.0.40
Win32 Version: 2.7.1.0
CodeBase: file:///C:/Program%20Files/Viscosity/IronPython.Modules.DLL
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0

Eric

User avatar
Posts: 972
Joined: Sun Jan 03, 2010 3:27 am

Post by Eric » Sun Nov 13, 2011 9:01 pm
Hi cfchase,

Are you running Windows with an increased DPI? I.e. you've changed a setting to make everything appear larger?

Regards,

Eric
Eric Thorpe
Viscosity Developer

Web: http://www.sparklabs.com
Support: http://www.sparklabs.com/support
Twitter: http://twitter.com/sparklabs

Eric

User avatar
Posts: 972
Joined: Sun Jan 03, 2010 3:27 am

Post by Eric » Tue Nov 15, 2011 1:14 pm
Just an update on this. We've found the issue and it is indeed isolated to those who run a higher DPI in windows than standard. We're hoping to have a beta up by the weekend which resolved the issue.

Cheers,

Eric
Eric Thorpe
Viscosity Developer

Web: http://www.sparklabs.com
Support: http://www.sparklabs.com/support
Twitter: http://twitter.com/sparklabs

cfchase

Posts: 2
Joined: Sun Nov 13, 2011 7:47 am

Post by cfchase » Thu Nov 17, 2011 2:03 am
Thanks for the quick response!

I'll try it out when the new version (and old first to verify) is available and let you know if it's fixed.
4 posts Page 1 of 1