List Info

Thread: listctrl set_item_data




listctrl set_item_data
user name
2007-09-03 23:02:53
Hi,

I have used set_item_data with ruby objects (an array) and
got a crash.
The reason is simple, the objects were deallocated by the
GC.

The easy solution would be to accept only long parameters
(like the
original interface).
The hard is to play by the GC's rules and increase the
reference count
and decrease on deletion.

Regards,
teki
_______________________________________________
wxruby-users mailing list
wxruby-usersrubyforge.org
ht
tp://rubyforge.org/mailman/listinfo/wxruby-users

Re: listctrl set_item_data
country flaguser name
United Kingdom
2007-09-04 04:10:53
Hi

Bela Babik wrote:
> I have used set_item_data with ruby objects (an array)
and got a crash.
> The reason is simple, the objects were deallocated by
the GC.
>   
It shouldn't do that. wxRuby tries to protect any objects
that have been 
set as item_data from Ruby's GC. Please could you post some
code that 
reproduces the problem, along with platform/version info?

cheers
alex

_______________________________________________
wxruby-users mailing list
wxruby-usersrubyforge.org
ht
tp://rubyforge.org/mailman/listinfo/wxruby-users

Re: listctrl set_item_data
user name
2007-09-04 23:02:21
Created a bug report:
http://rubyforge.or
g/tracker/index.php?func=detail&aid=13676&group_id=3
5&atid=218

-- 
teki
_______________________________________________
wxruby-users mailing list
wxruby-usersrubyforge.org
ht
tp://rubyforge.org/mailman/listinfo/wxruby-users

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )