FpSpread.WndProc ---> System.NullReferenceException

Posted by: scortex84 on 8 September 2017, 2:32 pm EST

  • Posted 8 September 2017, 2:32 pm EST

    Hi,

    I have a problem with a child view of my spread. I have a spread with 2 hierarchical child view. On my first childview, when I double click on a row, I load a form. When the form close, I refresh the spread and I get this error :

     ************** Texte de l'exception **************

    System.Exception: Exception handled in FpSpread.WndProc ---> System.NullReferenceException: La référence d'objet n'est pas définie à une instance d'un objet.

       à FarPoint.Win.Spread.SpreadView.a(Int32 A_0, Int32 A_1, MouseEventArgs A_2)

       à FarPoint.Win.Spread.SpreadView.g(MouseEventArgs A_0)

       à FarPoint.Win.Spread.SpreadView.a(Int32 A_0, Int32 A_1, MouseEventArgs A_2)

       à FarPoint.Win.Spread.SpreadView.g(MouseEventArgs A_0)

       à FarPoint.Win.Spread.FpSpread.OnMouseDown(MouseEventArgs e)

       à System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)

       à System.Windows.Forms.Control.WndProc(Message& m)

       à FarPoint.Win.Spread.FpSpread.WndProc(Message& m)

       --- Fin de la trace de la pile d'exception interne ---

       à FarPoint.Win.Spread.FpSpread.WndProc(Message& m)

       à System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

       à System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

       à System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

     
    I use the last version of the spread for windows on C# 2.0
     
    thank you for your help 

     

  • Replied 8 September 2017, 2:32 pm EST

    Hi,

    It sounds like some default processing is causing the exception.  I would recommend using the CellClick event instead of MouseDown, and setting e.Cancel = true to cancel the default processing.  If that does not help, please create a small sample which reproduces the problem and we can investigate the cause further.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels