I'm trying to make a list of pointers to character arrays. But when I try and append a new item, the darn thing gives a runtime error. Some times I even see: QList: out of memory... What am I doing wrong here?
Qt Code:
  1. QList *mp_list = new QList<char*>();
  2. //Adding an item
  3. void foo(char *pData)
  4. {
  5. mp_list->append( pData); //Crash
  6. .....
To copy to clipboard, switch view to plain text mode 
Paul