General programming question - please help! |
throwaway83
|
Additional weirdness... if I remove the call to the function that is causing the problem, the program will start, but when I close the program and the destructor for the listbox object is called, I get another segmentation fault error from the following:
GGUI_Interface::ListBox::~ListBox() { free(); } Does the segmentation fault mean that the problem lies within the offending function, rather than the function call itself? Both of these functions manipulate text pointers. I'm using an array of SDL_Texture* pointers, maybe that is the source of the problem. The only thing is, I tested this before and the listbox worked fine, and the function calls to create and allocate memory for the listbox are no different. |
|||||||||||
|