Quote Originally Posted by harryf View Post
Are you calling select() on your model? setTableName() only populates the headers, but does not execute a query to fetch the data.

Also:

m_pTableRecord=&pDatabase->m_Database.record(sTableName); // fetches column names

this line is scary - you are taking the address of a temporary object. m_pTableRecord becomes a dangling pointer!
I am dealing with this line right now, marcel helped me a lot with it. But for now, I've chcked, column names are fetched correctly. I will check now for select() method execution. Thanks a lot for now.