swarm-support
[Top][All Lists]
Advanced

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

Re: segmentation fault problem


From: Marcus G. Daniels
Subject: Re: segmentation fault problem
Date: 11 Oct 2000 10:29:40 -0700
User-agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.4

>>>>> "LB" == BEN SAID Lamjed thesard FTRD/DTL/LAN <address@hidden> writes:

LB> I get this segmentation error when I try to display a frame
LB> including lines to input certain variables. 

I do get that crash.  Looks like a bug in Windows Tk to me.  
However, it works for me on Debian 2.2.

Unless a SDG member asks me to investigate, I'm not going to do
anything about it.  We have to spend our scarce resources on new
development.  Java is another way to do this stuff, and you're free to
send me bug fixes to install.

#import <simtools.h> // initSwarm
#import <gui.h> // Frame, Form, GUI_EVENT_ASYNC

int
main (int argc, const char **argv)
{
  initSwarm (argc, argv);

  {
    id <Frame> frame = [Frame create: globalZone];
    id <Form> formSeg = [Form createParent: frame];
    int ageSegFlag, socialClassSegFlag, opinionLeaderSegFlag;
    int ageSegMin = 0, ageSegMax = 100, socialClassSeg = 9;

    [frame setWindowTitle: " Population segments"];

    [formSeg addLineName: "Age segmentation" Boolean: &ageSegFlag];
    [formSeg addLineName: "age min" Int: &ageSegMin];

    [formSeg addLineName: "age max" Int: &ageSegMax];

    [formSeg addLineName: "Social class segmentation" Boolean: 
&socialClassSegFlag];
     
    socialClassSeg = 0;
    [formSeg addLineName: "social class" Int: &socialClassSeg];

    opinionLeaderSegFlag = 0;
    [formSeg addLineName: "Opinion Leaders" Boolean: &opinionLeaderSegFlag];

    while (1) { while (GUI_EVENT_ASYNC ()) {} }
  }
}

/*
Local VariablesX:
compile-command: "$SWARMHOME/bin/libtool-swarm --mode=link gcc -DDLL -o 
TestForm -g -Wno-import -I$SWARMHOME/include -L$SWARMHOME/lib TestForm.m 
-lswarmdll -lobjcdll"
End:
*/

/*
Local Variables:
compile-command: "$SWARMHOME/bin/libtool-swarm --mode=link gcc -D_GNU_SOURCE -o 
TestForm -g -Wno-import -I$SWARMHOME/include -I$SWARMHOME/include/swarm 
-L/$SWARMHOME/lib/swarm -L$SWARMHOME/lib TestForm.m -lobjc -lswarm"
End:
*/

                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]