[wxruby-users] embedding wxruby?
Niklas Baumstark
niklas.baumstark at googlemail.com
Mon Sep 15 08:02:26 EDT 2008
Hello,
Alex Fenton <alex at pressure.to> wrote:
> Niklas Baumstark wrote:
> >>
> >> You will in some way need to link the wx C++ App object to a ruby
> >> instance and make it a constant (like Wx::THE_APP in wxRuby). Having the
> >> App as a constant is the link that wxRuby uses to protect long-lived C++
> >> objects like Windows from Ruby's garbage collection (see mark_wxApp).
> >>
> >
> > OK, this is more sophisticated than i need it. i just need to wrap a wxPanel, because the main interface is managed by C++.
> >
>
> OK, but to avoid leaks, or crashes from prematurely deleted objects, you
> will need some sort of memory management strategy. It gets quite
> complicated but most of the work is done ;)
I'll try to. thank you for the information.
> >> Happy to help further but may be better to follow-up on the wxruby-dev
> >> list as this is fairly technical....
> >>
> >
> > I would like to, but i can't subscribe to it properly. It says 403 when i want to confirm the subscription :( at least it did yesterday.
> >
>
> Just tried it and it seems to be working. If clicking on the link from
> the email make sure the URL isn't truncated as it contains an
> authentication string.
Yeah it's working now. I will ask future questions on this subjects on the dev mailing list.
Greetings,
Niklas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://rubyforge.org/pipermail/wxruby-users/attachments/20080915/3a6989b7/attachment.bin>
More information about the wxruby-users
mailing list