Well, another embarrassing bug solved. I was looping through a bunch of structures and, wouldn't you know it, one of the structures at the end didn't have stuff in it, which caused the zero size. Based upon what my testing web page was telling me, I thought the problem was at the beginning rather than the end. Thanx for your suggestions, I learned a few more things today.