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.