[wxruby-users] Preloading the wx libraries
Mario Steele
mario at ruby-im.net
Tue Jul 15 13:26:33 EDT 2008
*mouth drops* I never knew wxRuby was being used, or could even be used on
something like that little thing. The problem with that, is you need to
initialize Wx::App only once. Any attempt to use Wx::App more then once,
will cause the error your getting. You could possibly setup a Client/Server
system, in which you create a dummy library, that replicates the
functionality of wxRuby, which actually communicates to the Server, to
create the windows, and such. That would be the only way you would be able
to "Pre Load" the wxRuby library.
Sorry, that's about as much as I can help you with.
L8ers,
On Tue, Jul 15, 2008 at 8:50 AM, Magnus Engström <magnus at aoeu.info> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> I have a Nokia N810, running Linux, and wxruby works quite well on it,
> except application startup which takes quite some time.
>
> I have thought about preloading the wx libraries in some kind of
> launcher, which then brings up the forms on some signal.
>
> I tried calling MyApplication.new.main_loop multiple times (exited the
> main loop in between), which complained about the constant THE_APP
> already being defined. Undefining this and trying again gave me a
> segfault. I also tried handling this in the on_init method, but it
> didn't work so well when it wasn't allowed to return ;-)
>
> Do someone have any suggestions about how to create this type of launcher?
>
> Best regards,
> Magnus
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iEYEARECAAYFAkh8uS0ACgkQFsdVGDM22G6KigCbB57hPWZY+UFdnPfqIhCxsu3J
> VlYAn1sxXgSydAnmywJ8lUQAWtdHttKr
> =BLZH
> -----END PGP SIGNATURE-----
> _______________________________________________
> wxruby-users mailing list
> wxruby-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wxruby-users
>
--
Mario Steele
http://www.trilake.net
http://www.ruby-im.net
http://rubyforge.org/projects/wxruby/
http://rubyforge.org/projects/wxride/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/wxruby-users/attachments/20080715/927f19b1/attachment.html>
More information about the wxruby-users
mailing list