Unhandled exception with v4.0.3526

Posted by: projectik-fp on 8 September 2017, 2:30 pm EST

  • Posted 8 September 2017, 2:30 pm EST

    Hi, i've just update from version .3515 to .3526.


    Here my bug
    -I update a cell
    -I scroll until my cell was not visible  (I have 50 cols)
    -When i click on an other cells, i've got a Exception handled in FpSpread.WndProc


     System.Exception: Exception handled in FpSpread.WndProc ---> System.NullReferenceException: Object reference not set to an instance of an object.
       at FarPoint.Win.Spread.SpreadView.a(Control A_0)
       at FarPoint.Win.Spread.SpreadView.dj()
       at FarPoint.Win.Spread.SpreadView.o(Object A_0, EventArgs A_1)
       at FarPoint.Win.Spread.CellType.BaseCellType.FireEditingStopped()
       at FarPoint.Win.Spread.CellType.EditBaseCellType.StopEditing()
       at FarPoint.Win.Spread.SpreadView.StopCellEditing()
       at FarPoint.Win.Spread.SpreadView.a(Int32 A_0, Int32 A_1, MouseEventArgs A_2)
       at FarPoint.Win.Spread.SpreadView.g(MouseEventArgs A_0)
       at FarPoint.Win.Spread.FpSpread.OnMouseDown(MouseEventArgs e)
       at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at FarPoint.Win.Spread.FpSpread.WndProc(Message& m)


    This happen each time. If I changed my focus on another cell without scrolling (the edited cell are still visible at the screen) all are working fine


    I have this bug only since I have update to version .3526 (I don't have change any code)

  • Replied 8 September 2017, 2:30 pm EST

    Hello,


    I am not able to reproduce this issue. What CellType is the cell that is in EditMode when this happens? Could you post a small zipped project reproducing this behavior for us to debug?


    A way to workaround this issue may be to catch the TopChange and and LeftChange events and add the following code to make the Spread exit editmode when a scroll happens.


    If FpSpread1.EditMode = True Then
       FpSpread1.StopCellEditing()
    End If

  • Replied 8 September 2017, 2:30 pm EST

    Hi,


    The cell type was TextCellType with a SubEditor


    Also, I have a cellChanged event on the cell.
    I've made a rollback to version .3515 and it's working fine


      I dont' have this error when I scoll up or down, only on left scroll


    I have try you code on left change event and i'm getting a system.nullreferenceexception (look like the previous bug)


     


    I've try removing the subeditor, the freeze and the cellchanged event, same bug


     

  • Replied 8 September 2017, 2:30 pm EST

    Hello,


    I am not able to reproduce this issue. Could you post a small zipped project reproducing this issue for us to debug?

Need extra support?

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

Learn More

Forum Channels