This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SwitcherPro Desktop 3.9.10 Crashes under Vista

Hi all,

I am running SwitcherPro 3.9.10 on a fully patched Vista machine and it crashes when attempting to open the list of devices. I can solve this problem by running as Administrator. This is fine for me but I thought you might be interested.

Cheers

Ed Waugh

Debug Output:

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 SwitcherPro2008.DataSets.ControllerDataSetTableAdapters.ControllerViewTableAdapter.FillDataTableFromProFrameworkControllerDataTable(ControllerViewDataTable& dataTable, ControllerViewDataTable proFrameworkControllerDT)
   at SwitcherPro2008.DataSets.ControllerDataSetTableAdapters.ControllerViewTableAdapter.get_GetControllerViewDataTableInstance()
   at SwitcherPro2008.DataSets.ControllerDataSetTableAdapters.ControllerViewTableAdapter.GetDataControllerView()
   at SwitcherProDT.NewDesignWizard.DataSetGateway.GetControllerData()
   at SwitcherProDT.NewDesignWizard.NewDesign.tabItem_PartNumber_Click(Object sender, EventArgs e)
   at Telerik.WinControls.RadItem.OnClick(EventArgs e)
   at Telerik.WinControls.UI.RadButtonItem.OnClick(EventArgs e)
   at Telerik.WinControls.RadItem.DoClick(EventArgs e)
   at Telerik.WinControls.RadItem.PerformClick()
   at SwitcherProDT.NewDesignWizard.NewDesign.NewDesign_Load(Object sender, EventArgs e)
   at System.Windows.Forms.Form.OnShown(EventArgs e)
   at System.Windows.Forms.Form.CallShownEvent()
   at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbacks()


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4206 (VistaSP2GDR.050727-4200)
    CodeBase:
file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
SwitcherProDT
    Assembly Version: 3.9.10.1
    Win32 Version: 3.9.10.1
    CodeBase:
file:///C:/Program%20Files/Texas%20Instruments/SwitcherPro%20Desktop/1.0.0.0/SwitcherProDT.exe
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4205 (VistaSP2GDR.050727-4200)
    CodeBase:
file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
    CodeBase:
file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
    CodeBase:
file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
    CodeBase:
file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
Common
    Assembly Version: 3.5.25.31622
    Win32 Version: 3.5.25.16
    CodeBase:
file:///C:/Program%20Files/Texas%20Instruments/SwitcherPro%20Desktop/1.0.0.0/Common.DLL
----------------------------------------
FrameworkDetection
    Assembly Version: 1.0.10.0
    Win32 Version: 1.0.10.0
    CodeBase:
file:///C:/Program%20Files/Texas%20Instruments/SwitcherPro%20Desktop/1.0.0.0/FrameworkDetection.DLL
----------------------------------------
System.Data.SqlServerCe
    Assembly Version: 3.5.1.0
    Win32 Version: 3.5.8080.0
    CodeBase:
file:///C:/Windows/assembly/GAC_MSIL/System.Data.SqlServerCe/3.5.1.0__89845dcd8080cc91/System.Data.SqlServerCe.dll
----------------------------------------
System.Data
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
    CodeBase:
file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
    CodeBase:
file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
SwitcherProBusinessLayer
    Assembly Version: 3.5.38.31627
    Win32 Version: 3.5.38.30
    CodeBase:
file:///C:/Program%20Files/Texas%20Instruments/SwitcherPro%20Desktop/1.0.0.0/SwitcherProBusinessLayer.DLL
----------------------------------------
AppUpdater
    Assembly Version: 4.2.8.31631
    Win32 Version: 4.2.8.0
    CodeBase:
file:///C:/Program%20Files/Texas%20Instruments/SwitcherPro%20Desktop/1.0.0.0/AppUpdater.DLL
----------------------------------------
Telerik.WinControls
    Assembly Version: 6.1.0.0
    Win32 Version: 6.1.0.0
    CodeBase:
file:///C:/Program%20Files/Texas%20Instruments/SwitcherPro%20Desktop/1.0.0.0/Telerik.WinControls.DLL
----------------------------------------
Telerik.WinControls.UI
    Assembly Version: 6.1.0.0
    Win32 Version: 6.1.0.0
    CodeBase:
file:///C:/Program%20Files/Texas%20Instruments/SwitcherPro%20Desktop/1.0.0.0/Telerik.WinControls.UI.DLL
----------------------------------------
System.Configuration.Install
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
    CodeBase:
file:///C:/Windows/assembly/GAC_MSIL/System.Configuration.Install/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.Install.dll
----------------------------------------
System.Design
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
    CodeBase:
file:///C:/Windows/assembly/GAC_MSIL/System.Design/2.0.0.0__b03f5f7f11d50a3a/System.Design.dll
----------------------------------------
System.Web
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4209 (VistaSP2GDR.050727-4200)
    CodeBase:
file:///C:/Windows/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
Accessibility
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
    CodeBase:
file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Drawing.Design
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
    CodeBase:
file:///C:/Windows/assembly/GAC_MSIL/System.Drawing.Design/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.Design.dll
----------------------------------------
TelerikCommon
    Assembly Version: 6.1.0.0
    Win32 Version: 6.1.0.0
    CodeBase:
file:///C:/Program%20Files/Texas%20Instruments/SwitcherPro%20Desktop/1.0.0.0/TelerikCommon.DLL
----------------------------------------
System.Runtime.Serialization.Formatters.Soap
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
    CodeBase:
file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Serialization.Formatters.Soap/2.0.0.0__b03f5f7f11d50a3a/System.Runtime.Serialization.Formatters.Soap.dll
----------------------------------------
SwitcherProVDBDS
    Assembly Version: 3.5.38.31624
    Win32 Version: 3.5.38.30
    CodeBase:
file:///C:/Program%20Files/Texas%20Instruments/SwitcherPro%20Desktop/1.0.0.0/SwitcherProVDBDS.DLL
----------------------------------------
VistaDB.NET20
    Assembly Version: 3.5.1.84
    Win32 Version: 3.5.1.84
    CodeBase:
file:///C:/Program%20Files/Texas%20Instruments/SwitcherPro%20Desktop/1.0.0.0/VistaDB.NET20.DLL
----------------------------------------
Telerik.Charting
    Assembly Version: 2.0.1.0
    Win32 Version: 2.0.1.0
    CodeBase:
file:///C:/Program%20Files/Texas%20Instruments/SwitcherPro%20Desktop/1.0.0.0/Telerik.Charting.DLL
----------------------------------------
Telerik.WinControls.RadChart
    Assembly Version: 6.1.0.0
    Win32 Version: 6.1.0.0
    CodeBase:
file:///C:/Program%20Files/Texas%20Instruments/SwitcherPro%20Desktop/1.0.0.0/Telerik.WinControls.RadChart.DLL
----------------------------------------
Telerik.WinControls.GridView
    Assembly Version: 6.1.0.0
    Win32 Version: 6.1.0.0
    CodeBase:
file:///C:/Program%20Files/Texas%20Instruments/SwitcherPro%20Desktop/1.0.0.0/Telerik.WinControls.GridView.DLL
----------------------------------------
ProFramework.ProTools.Elements
    Assembly Version: 1.0.27.31621
    Win32 Version: 1.0.27.7
    CodeBase:
file:///C:/Program%20Files/Texas%20Instruments/SwitcherPro%20Desktop/1.0.0.0/ProFramework.ProTools.Elements.DLL
----------------------------------------
ProFramework.ProTools.PartsLibrary
    Assembly Version: 1.0.50.31623
    Win32 Version: 1.0.50.31
    CodeBase:
file:///C:/Program%20Files/Texas%20Instruments/SwitcherPro%20Desktop/1.0.0.0/ProFramework.ProTools.PartsLibrary.DLL
----------------------------------------
System.Transactions
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
    CodeBase:
file:///C:/Windows/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
    CodeBase:
file:///C:/Windows/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

  • Hi Ed,

    Your observation is correct. SwitcherPro does not work unless it is run as Administrator. The user created designs are store in C:\Program Files\Texas Instruments and the database engine needs to run as Administrator to read/write the data.

    We are working on transitioning the user data to C:\Document and Settings\<uid>\My Documents\Texas Instruments. Once that is done, SwitcherPro should be able to run in an unprivileged account.

    Thanks for documenting this issue in the forum.

    Regards,
    Michael

    -- 
    Michael Krasnicki
    Analog eLab
    Texas Instruments
  • Hi Michael,

    Thanks for your response, it would actually be good to store user files in a location the user chooses, that way they could be included in a backup along with related project files or placed on a shared drive. 

    Also, SwitcherPro is very handy software, thanks very much for your hard work.

    Cheers


    Ed