I am using a CScrollview within an SDI app for viewing reports. The same view is used to display all reports but when I select one subset of reports, I get an assertion error in the CHandleMap:eleteTemp() function, specifically line: ASSERT(ph[0] == h || ph[0] == NULL);

I was wondering why this function would be called, I can not get far enough into the code in order to find the statement that actually causes the error. I have stepped through the OnDraw function of the view and as far afterwards as it will allow me to, and everything works fine until I run the code without stepping through it. After the information is displayed the assertion error pops up. The other 5 subsets of the code work fine and cause no errors.

Ideas, comments, solutions?