View Single Post
Posts: 726 | Thanked: 345 times | Joined on Apr 2010 @ Sweden
#4
Scope is a semantic property, getting a segmentation fault when accessing an attribute is something else.

Please supply the code where you "initialize foldersList in the browseFolders() function". Most likely you're not allocating memory in the way you're expecting to.

Also, make sure you're using the same object instance when initializing and referencing.