On 5 Jan 2013, at 09:12, Ian Davidson wrote: > When my program comes to execute that line I get a "Segmentation fault (core dumped)" message. Have you tried opening the core dump in a debugger and looking at the backtrace?