On 14 Sep 2003 at 20:40, John Lamb wrote:
Date sent: Sun, 14 Sep 2003 20:40:04 +0100
From: John Lamb
Can anyone suggest for me reasons why the first of these two fragments might produce a segmentation fault while the second works fine?
ssc::RunSet has only one constructor, which takes no parameters.
++
#include"Executive.h"
void ssc::Executive( int argc, const char* args[] ){ ... ssc::RunSet runset; /* FAILS HERE */ runset.run(); }
++
#include"Executive.h"
void ssc::Executive( int argc, const char* args[] ){ ... ssc::RunSet* runset = new ssc::RunSet(); runset->run(); delete runset; }
++
-- JDL
I'd need to see the definition of runset, and the constructor to help... alan -- http://www.ibgames.net/alan Registered Linux user #6822 http://counter.li.org Winding Down - Weekly Tech Newsletter - subscribe at http://www.ibgames.net/alan/winding/mailing.html