RE: [Fxruby-users] Cannot connect to SEL_DELETED on a treeList
Status: Inactive
Brought to you by:
lyle
|
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
|