Displaying 2 results from an estimated 2 matches for "my_tree".
Did you mean:
my_free
2000 Sep 07
1
Calloc() & Free() in different .C(.) calls --> not usable ?
...39;ll need to store that tree in R
size <- .C("fittree", data, ..., res = integer(1))$res
## Now that I know its size, I can get it into R :
tree.in.R <- .C("gettree", size, res = integer(size))$res
where in the C code, I have a
global
static *tree_struct my_tree;
and in C's fittree(), I use
my_tree = Calloc(1, tree_struct);
for building the tree, which is
then accessed by gettree(), which ends in
Free(my_tree);
All well, BUT:
problem is that memory just builds up and is not freed at all.
>From a (more private) E-mail of Prof Brian Rip...
2006 Nov 23
0
[ wxruby-Feature Requests-6826 ] Add a traverse method to Wx::TreeCtrl
...sed which would receive the id''s of each treectrl item in turn.
An optional parameter to the method could specify the id of an entry point to traverse from, to allow only part of the tree to be traversed. The default argument would be the root id.
Example:
# set all labels to upper case
my_tree.traverse(some_id) do | item_id |
new_label = my_tree.get_item_text(tree_id).upcase
my_tree.set_item_text(tree_id, new_label)
end
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=221&aid=...