How to use pointer to an array of pointers on CPP?
Hello,
I'm trying to list some information of my database. To do that I'm using a class (MyClassDao) that will do all the SQL stuff and returns to me a list of objects with the content of my table (each row = one object). The problem is: my list gets only the first object... on the second index I'm getting 'segfault'. Can someone post something to help me (link, reference or example)? The call for the list function is: Code:
MyClassDao* mcd = new MyClassDao(); Code:
int MyClassDao::list2(void* conn, void* obj, MyClass*** list, int* size) { |
Quote:
Code:
MyClassDao* mcd = new MyClassDao(); Code:
int MyClassDao::list2(void* conn, void* obj, MyClass** list, int* size) { |
Thanks David1357!
It works! I guess I was making too much confusion with these pointers to object. |
All times are GMT -5. The time now is 04:28 AM. |