LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

InsertTableRows causes crash on exit

I have a program that keeps data in a table. Every time the user presses the Add button, a row is created in the table and the data populated.

Everything works, except on exit. When I exit the program using the X in the corner, I get one of two things to happen:
1. R6025 - pure virtual function call
2. The dialog closes, but the IDE still says < < Running > > until I stop it manually. (This might be that the error dialog is behind another window. This case happens infrequently)

This is the line of code:
    InsertTableRows(pnlCal, pnlCal_tblData, -1, 1, VAL_CELL_NUMERIC);   

Weird thing is that if I add only one row then the program exits normally.

I've tried deleting all the rows before the program exits but that does not help.


0 Kudos
Message 1 of 2
(2,943 Views)
That's not the problem. Please ignore the question.
0 Kudos
Message 2 of 2
(2,940 Views)