you are pointing to the memory that is going to get changed when you read the next record. You would need to make a deep copy here.