[wxruby-users] embedding wxruby?

Alex Fenton alex at pressure.to
Mon Sep 15 07:40:53 EDT 2008


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 ;)


>> 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.

alex



More information about the wxruby-users mailing list