[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
segmentation fault problem
From: |
BEN SAID Lamjed thesard FTRD/DTL/LAN |
Subject: |
segmentation fault problem |
Date: |
Wed, 11 Oct 2000 17:05:09 +0200 |
I'm using Swarm-2.1.1 on Windows 98. When running my simulation I get the
following segmentation fault (I've joined the back trace for this error
hoping that it helps)
I get this segmentation error when I try to display a frame including lines
to input certain variables. The program portion relative to this is below. I
don't have this problem if the frame contains ONLY the age segmentation
menu.
Thanks for help.
- menuSegmentation
{
if (msegmentation)
{
//fprintf(_obj_xdebug, "Age Segmentation already exists!\n");
[msegmentation drop];
msegmentation = nil;
}
else
{
msegmentation = [Frame create: [self getZone]];
[msegmentation setWindowTitle: " Population segments" ];
formSeg = [Form createParent:msegmentation ];
// age segmentation
ageSegFlag = 0;
[formSeg addLineName: "Age segmentation" Boolean: &ageSegFlag];
[formSeg addLineName: "age min" Int: &ageSegMin ];
[formSeg addLineName: "age max" Int: &ageSegMax ];
//when adding these lines I get the segmentation fault
// social class segmentation
socialClassSegFlag = 0;
[formSeg addLineName: "Social class segmentation" Boolean:
&socialClassSegFlag];
[formSeg addLineName: "social class" Int: &socialClassSeg ];
// opinion leader segmentation
opinionLeaderSegFlag = 0;
[formSeg addLineName: "Opinion Leaders" Boolean: &opinionLeaderSegFlag];
}
return self;
}
Program received signal SIGSEGV, Segmentation fault.
TkWinGetDrawableDC (display=0x4614cb0, d=0, state=0x256f8e8)
at /src/tk/win/tkWinDraw.c:151
151 /src/tk/win/tkWinDraw.c: No such file or directory.
(gdb) bt
#0 TkWinGetDrawableDC (display=0x4614cb0, d=0, state=0x256f8e8)
at /src/tk/win/tkWinDraw.c:151
#1 0x663097d3 in XCopyArea (display=0x4614cb0, src=0, dest=74595344,
gc=0x4674c98, src_x=0, src_y=0, width=4294967252, height=1, dest_x=0,
dest_y=0) at /src/tk/win/tkWinDraw.c:307
#2 0x663063de in TkpRealDisplayButton (clientData=0x4733eb8, force=1)
at /src/tk/win/tkWinButton.c:655
#3 0x66305908 in TkpDisplayButton (clientData=0x4733eb8)
at /src/tk/win/tkWinButton.c:354
#4 0x660474c9 in TclServiceIdle () at
/src/tcl/win/../generic/tclTimer.c:681
#5 0x6603d8a8 in Tcl_DoOneEvent (flags=32)
at /src/tcl/win/../generic/tclNotify.c:760
#6 0x66341f9a in MapFrame (clientData=0x46ca2d0)
at /src/tk/win/../generic/tkFrame.c:889
#7 0x660474c9 in TclServiceIdle () at
/src/tcl/win/../generic/tclTimer.c:681
#8 0x6603d8a8 in Tcl_DoOneEvent (flags=-3)
at /src/tcl/win/../generic/tclNotify.c:760
#9 0x69cb2884 in tkobjc_doOneEventSync ()
at /src/Swarm/swarm/src/tkobjc/common.m:143
#10 0x69c545f5 in _i_ControlPanel__setStateStopped (self=0x46620b8,
_cmd=0x69dce668) at /src/Swarm/swarm/src/simtoolsgui/ControlPanel.m:133
#11 0x69c544f9 in _i_ControlPanel__startInActivity_ (self=0x46620b8,
_cmd=0x69dcee58, activityID=0x4721558)
at /src/Swarm/swarm/src/simtoolsgui/ControlPanel.m:100
#12 0x69c554b4 in _i_GUISwarm__go (self=0x4662f38, _cmd=0x41105c)
at /src/Swarm/swarm/src/simtoolsgui/GUISwarm.m:49
#13 0x4060de in main (argc=2, argv=0x45a0bd8) at main.m:37
#14 0x610022c5 in _size_of_stack_reserve__ ()
#15 0x61002855 in _size_of_stack_reserve__ ()
#16 0x40f5b7 in cygwin_crt0 ()
#17 0x40103b in mainCRTStartup ()
#18 0xbff8b560 in libtk80_a_iname ()
#19 0xbff8b412 in libtk80_a_iname ()
#20 0xbff89dd5 in libtk80_a_iname ()
Cannot access memory at address 0x82edafec
==================================
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.
- segmentation fault problem,
BEN SAID Lamjed thesard FTRD/DTL/LAN <=