Re: Segmentation fault - Core dumped



On 19 Jun 2001 11:02:03 +0200, Marina Barbiroli wrote:
> 
> I'm developing a graphical interface for a simulation program.
> In the function that mabnages the running of the simulators I've used
> the "gnome_execute_async" function as follows:
> 
> 
> ...
> 
> gchar *argv[0];

^^^ This line is your problem. It should be:

gchar *argv[1]; 

> argv[0]=g_strdup("Simulator");
> stato=gnome_execute_async(/"home/marina"",1,argv);

    Jim Cape
    http://www.ignore-your.tv

    If the United States Government spent as much on education
    as it did on the military, every student could fail in a
    solid gold desk.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]