Skip to content

Unhandled exception while fitting peaks with the latest NET 9.0 versions of PDIndexer #3

@loictoraille

Description

@loictoraille

Dear Seto-san,

I happily report a new issue that has been bothering me with the latest versions of PDIndexer. This problem does not exist with v4.446, which means I don't know if it comes from the corrections performed on the decimal separator, or if it comes from the update to the 9.0 NET version.

Here is the problem: when using FormFitting, each time I tick or untick a peak to include or remove it from the fit, I get a popup with the following text (mainly in French, which to me means that it is produced by the NET framework):

Image

If I click on 'Continuer', the rest of PDIndexer works perfectly. This means that it does not prevent me from using the form fitting of PDIndexer, it is just really annoying to have to click on a popup every time I add or remove a peak to the fitting list.

Here is what appears if I click on 'Détails' :

System.NullReferenceException: Object reference not set to an instance of an object.
at System.Windows.Forms.DataGridViewCell.OnMouseUpInternal(DataGridViewCellMouseEventArgs e)
at System.Windows.Forms.DataGridView.OnCellMouseUp(DataGridViewCellMouseEventArgs e)
at System.Windows.Forms.DataGridView.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(HWND hWnd, MessageId msg, WPARAM wparam, LPARAM lparam)

I've tried installing v4450 with NET 9.0 on a different computer, the same error pops up. I've tried reinstalling (and cleaning the AppData folder), it does not resolve the issue.

ChatGPT suggests me to add the following line somewhere:

if (e == null || dataGridView.Rows[e.RowIndex].Cells[e.ColumnIndex].Value == null)
return;

I hope you will be able to solve this issue easily :) Let me know if you need more information. My PC environment is still Windows 10.

Thanks again for your work!

Best regards,

Loïc Toraille

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions