Pierangelo, Thanks for debugging this for me so quickly! The paging worked fine on the second page for me and all subsequent pages for me, so I don't know why I didn't catch the error. Are there still mallocs that should be changed to stack allocation per your previous post? Lynn