Bug SV-2332
1 vote

System.NullReferenceException when typing something in region's placeholder

Created by Davide on 4/27/2016 5:14 PM Last Updated by smath on 4/28/2016 1:22 AM
%
 (hrs)
Logged: 0   (hrs)

 Description

1. Add a regionevaluable in a worksheet (f.e. a 2D plot)

2. Save it as Viewer file

3. Run the Viewer application

4. Click on the region's placeholder, try to type something -> An exception is thrown

 

System.NullReferenceException: Object reference not set to an instance of an object.
   in SMath.Control.DynamicAssistance.Show(RegionBase sender)
   in SMath.Control.RegionHolder`1.ShowDynamicAssistance(RegionBase sender)
   in SMath.Control.MathRegion.RequestShowAvailableTermsList(Int32 index)
   in SMath.Control.MathRegion.InsertManager(String value)
   in SMath.Control.MathRegion.OnCommandSend(String value)
   in SMath.Control.RegionHolder`1.OnCommandSend(String value)
   in SMath.Control.PlotRegion.OnCommandSend(String value)
   in SMath.Control.RegionControl.OnKeyPress(KeyPressEventArgs e)
   in System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
   in System.Windows.Forms.Control.WmKeyChar(Message& m)
   in System.Windows.Forms.Control.WndProc(Message& m)
   in System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Assembly caricati **************
mscorlib
    Versione assembly: 2.0.0.0
    Versione Win32: 2.0.50727.5485 (Win7SP1GDR.050727-5400)
    Base di codice: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
tes
    Versione assembly: 1.1.5961.27267
    Versione Win32: 1.1.5961.27267
    Base di codice: file:///C:/Users/Davide%20Carpi/Desktop/tes.exe
----------------------------------------
System.Windows.Forms
    Versione assembly: 2.0.0.0
    Versione Win32: 2.0.50727.5491 (Win7SP1GDR.050727-5400)
    Base di codice: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Versione assembly: 2.0.0.0
    Versione Win32: 2.0.50727.5485 (Win7SP1GDR.050727-5400)
    Base di codice: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Versione assembly: 2.0.0.0
    Versione Win32: 2.0.50727.5492 (Win7SP1GDR.050727-5400)
    Base di codice: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
SMath.UI
    Versione assembly: 0.98.5953.12976
    Versione Win32: 1.1.5961.27267
    Base di codice: file:///C:/Users/Davide%20Carpi/Desktop/tes.exe
----------------------------------------
SMath.Controls
    Versione assembly: 0.98.5953.12975
    Versione Win32: 1.1.5961.27267
    Base di codice: file:///C:/Users/Davide%20Carpi/Desktop/tes.exe
----------------------------------------
SMath.Manager
    Versione assembly: 0.98.5953.12974
    Versione Win32: 1.1.5961.27267
    Base di codice: file:///C:/Users/Davide%20Carpi/Desktop/tes.exe
----------------------------------------
System.Xml
    Versione assembly: 2.0.0.0
    Versione Win32: 2.0.50727.5485 (Win7SP1GDR.050727-5400)
    Base di codice: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
SMathFileType
    Versione assembly: 1.9.5953.12980
    Versione Win32: 1.1.5961.27267
    Base di codice: file:///C:/Users/Davide%20Carpi/Desktop/tes.exe
----------------------------------------
TextRegion
    Versione assembly: 1.10.5953.12979
    Versione Win32: 1.1.5961.27267
    Base di codice: file:///C:/Users/Davide%20Carpi/Desktop/tes.exe
----------------------------------------
SMath.UI
    Versione assembly: 0.98.5953.12976
    Versione Win32: 1.1.5961.27267
    Base di codice: file:///C:/Users/Davide%20Carpi/Desktop/tes.exe
----------------------------------------
SMath.Controls
    Versione assembly: 0.98.5953.12975
    Versione Win32: 1.1.5961.27267
    Base di codice: file:///C:/Users/Davide%20Carpi/Desktop/tes.exe
----------------------------------------
mscorlib.resources
    Versione assembly: 2.0.0.0
    Versione Win32: 2.0.50727.5485 (Win7SP1GDR.050727-5400)
    Base di codice: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
SMath.Math.Symbolic
    Versione assembly: 1.32.5953.12975
    Versione Win32: 1.1.5961.27267
    Base di codice: file:///C:/Users/Davide%20Carpi/Desktop/tes.exe
----------------------------------------
PlotRegion
    Versione assembly: 1.9.5953.12981
    Versione Win32: 1.1.5961.27267
    Base di codice: file:///C:/Users/Davide%20Carpi/Desktop/tes.exe
----------------------------------------
SMath.Math.Numeric
    Versione assembly: 1.65.5953.12975
    Versione Win32: 1.1.5961.27267
    Base di codice: file:///C:/Users/Davide%20Carpi/Desktop/tes.exe
----------------------------------------
SMath.Manager
    Versione assembly: 0.98.5953.12974
    Versione Win32: 1.1.5961.27267
    Base di codice: file:///C:/Users/Davide%20Carpi/Desktop/tes.exe
----------------------------------------
SMath.Math.Numeric
    Versione assembly: 1.65.5953.12975
    Versione Win32: 1.1.5961.27267
    Base di codice: file:///C:/Users/Davide%20Carpi/Desktop/tes.exe
----------------------------------------
SMath.Math.Symbolic
    Versione assembly: 1.32.5953.12975
    Versione Win32: 1.1.5961.27267
    Base di codice: file:///C:/Users/Davide%20Carpi/Desktop/tes.exe
----------------------------------------
System.Windows.Forms.resources
    Versione assembly: 2.0.0.0
    Versione Win32: 2.0.50727.5420 (Win7SP1.050727-5400)
    Base di codice: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_it_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------

    smath (Thursday, April 28, 2016 1:20 AM) #

Fixed. Thank you!