Thread: RE: [Fxruby-users] Cannot connect to SEL_DELETED on a treeList
Status: Inactive
Brought to you by:
lyle
|
From: Daniel S. <da...@pr...> - 2004-03-11 02:29:51
|
Incidentally, when I run it and click the item to remove it, I get the
following in my output:
FXRbGetRubyObj(this=3D0x07027cb0) returns non-Qnil
Anybody know what that means and how to resolve it?
> -----Original Message-----
> From: Daniel Sheppard=20
> Sent: Thursday, 11 March 2004 12:59 PM
> To: fxr...@li...
> Subject: [Fxruby-users] Cannot connect to SEL_DELETED on a treeList
>=20
>=20
> Eeep. And now more segfaults. Either I'm missing out on some=20
> fundamentals here, or there's much bugginess about.
>=20
> Once I connect to SEL_DELETED on a @treeList, I get a=20
> segfault on exit if the tree isn't empty. If I run the=20
> following program and exit immediately, I get a segfault. If=20
> I click the item (removing it), it exits cleanly.
>=20
> ---
>=20
> class TestWindow < FXMainWindow
> def initialize(parent)
> super(parent, "test", nil, nil, DECOR_ALL, 0, 0, 400, 300)
> @treeList =3D FXTreeList.new(self, 0)
> @treeList.connect(SEL_DELETED) { |a,b,item| puts "deleted"}
> @treeList.connect(SEL_CLICKED) { |a,b,item|=20
> @treeList.removeItem(item, true); puts "removed"}
> item =3D @treeList.addItemLast(nil, FXTreeItem.new("hello"), true)
> end
> def create
> super
> show(PLACEMENT_SCREEN)
> end
> end
> =20
> if __FILE__ =3D=3D $0
> FXApp.new("test7", "test") do |theApp|
> TestWindow.new(theApp)
> theApp.create
> theApp.run
> end
> end=20
> ##############################################################
> #######################
> This email has been scanned by MailMarshal, an email content=20
> filter.=20
> ##############################################################
> #######################
>=20
>=20
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President=20
> and CEO of GenToo technologies. Learn everything from=20
> fundamentals to system=20
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id638&op=3Dick
> _______________________________________________
> Fxruby-users mailing list
> Fxr...@li...
> https://lists.sourceforge.net/lists/listinfo/fxruby-users
>=20
#########################################################################=
############
This email has been scanned by MailMarshal, an email content filter.
#########################################################################=
############
|
|
From: Paul R. <pau...@sh...> - 2004-03-11 04:45:18
|
Out of interest I tried this, as I had lots of seg faults a week or so
ago in my code.
Im using win XP Home ruby 1.8.0 (2003-08-04) [i386-mswin32] from the
windows installer( with no FX updates)
The code below worked fine (once I added the require, include etc) . No
seg faults, no FXRbGetRubyObj....
Let me know if you want me to try anything else.
Paul
-----Original Message-----
From: fxr...@li...
[mailto:fxr...@li...] On Behalf Of Daniel
Sheppard
Sent: 10 March 2004 19:17
To: fxr...@li...
Subject: RE: [Fxruby-users] Cannot connect to SEL_DELETED on a treeList
Incidentally, when I run it and click the item to remove it, I get the
following in my output:
FXRbGetRubyObj(this=0x07027cb0) returns non-Qnil
Anybody know what that means and how to resolve it?
> -----Original Message-----
> From: Daniel Sheppard
> Sent: Thursday, 11 March 2004 12:59 PM
> To: fxr...@li...
> Subject: [Fxruby-users] Cannot connect to SEL_DELETED on a treeList
>
>
> Eeep. And now more segfaults. Either I'm missing out on some
> fundamentals here, or there's much bugginess about.
>
> Once I connect to SEL_DELETED on a @treeList, I get a
> segfault on exit if the tree isn't empty. If I run the
> following program and exit immediately, I get a segfault. If
> I click the item (removing it), it exits cleanly.
>
> ---
>
> class TestWindow < FXMainWindow
> def initialize(parent)
> super(parent, "test", nil, nil, DECOR_ALL, 0, 0, 400, 300)
> @treeList = FXTreeList.new(self, 0)
> @treeList.connect(SEL_DELETED) { |a,b,item| puts "deleted"}
> @treeList.connect(SEL_CLICKED) { |a,b,item|
> @treeList.removeItem(item, true); puts "removed"}
> item = @treeList.addItemLast(nil, FXTreeItem.new("hello"), true)
> end
> def create
> super
> show(PLACEMENT_SCREEN)
> end
> end
>
> if __FILE__ == $0
> FXApp.new("test7", "test") do |theApp|
> TestWindow.new(theApp)
> theApp.create
> theApp.run
> end
> end
> ##############################################################
> #######################
> This email has been scanned by MailMarshal, an email content
> filter.
> ##############################################################
> #######################
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President
> and CEO of GenToo technologies. Learn everything from
> fundamentals to system
> administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=ick
> _______________________________________________
> Fxruby-users mailing list
> Fxr...@li...
> https://lists.sourceforge.net/lists/listinfo/fxruby-users
>
########################################################################
#############
This email has been scanned by MailMarshal, an email content filter.
########################################################################
#############
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=ick
_______________________________________________
Fxruby-users mailing list
Fxr...@li...
https://lists.sourceforge.net/lists/listinfo/fxruby-users
|
|
From: Daniel S. <da...@pr...> - 2004-03-11 05:04:12
|
I guess it gets a trip to the bugtracker then. Thanks. > -----Original Message----- > From: Paul Rogers [mailto:pau...@sh...]=20 > Sent: Thursday, 11 March 2004 3:32 PM > To: fxr...@li... > Subject: RE: [Fxruby-users] Cannot connect to SEL_DELETED on=20 > a treeList >=20 >=20 > Out of interest I tried this, as I had lots of seg faults a=20 > week or so ago in my code. >=20 > Im using win XP Home ruby 1.8.0 (2003-08-04) [i386-mswin32]=20 > from the windows installer( with no FX updates) >=20 > The code below worked fine (once I added the require, include=20 > etc) . No seg faults, no FXRbGetRubyObj.... >=20 >=20 > Let me know if you want me to try anything else. >=20 > Paul #########################################################################= ############ This email has been scanned by MailMarshal, an email content filter. #########################################################################= ############ |