[erlang-questions] wxErlang - wxLogNull question
Angel
clist@REDACTED
Thu Oct 8 12:23:24 CEST 2009
El Jueves, 8 de Octubre de 2009 06:14:01 Amit Murthy escribió:
> Hi,
>
> I am using the wxImage module of wxErlang to resize some images in a back
> ground process. Now, if there is an invalid file name or the image binary is
> corrupt, wxImage throws a window popup message which I don't want. The popup
> is actually coming from wxWidgets as outlined here
>
> http://www.wxwidgets.org/docs/faqcmn.htm#lognull
>
> and here -
> http://docs.wxwidgets.org/stable/wx_wxlognull.html
>
> The solution is to call wxLogNull if we do not want the error popups.
>
> But wxErlang does not expose wxLogNull. Any particular reason why? Any other
> way to avoid the popup.
>
>
> A related question - Since I am only using wxImage to resize images and not
> really having any GUI displayed at all, is it possible to use wxErlang
> without an X server running ?
>
> Amit
>
Well ,
this seems to be the reason for having a separate wxexlang os process instead of a driver.
If people begins to exercise more and more library funtions for porpouses other that display a GUI
we can lose all the resilence we have in the VM.
Just take this "or the image binary is corrup" and now how do you (1) "let other process fix the error" when we
have a lot of code and subtle bugs buried inside a big erlang driver?
Erlang driver should be streamlined versions of code that needs to be fast and low level.
Whats the problem on being a port process for wxerlang? ¿we need speed? Why?
Clearly this library seem to be able to do many thing on its own and being able to load binaries, images and files
without erlang code intervention seems a good point against the need for being a driver.
Just throw another process , just throw another core to the problem. There is a lot of hype and fear
simultaneously for erlang being the next Big Thing about concurrency and pushing big things into
drivers does not help the concept.
Will erlang became "big and bloated" like the linux kernel?
As a newbie I can't claim seriously any evidence in one or the other direction, but for me the beauty
of GS was mainly based on the port concept showing the world that great things can be made today
from the pipes concept.
I feel this is really the erlang spirit
/Angel
(1): http://www.erlang.org/pipermail/erlang-questions/2003-April/008647.html
PS: Sorry for my english :-P
--
Este correo no tiene dibujos. Las formas extrañas en la pantalla son letras.
__________________________________________
Clist UAH a.k.a Angel
__________________________________________
Evitar la programación defensiva. Manual de Erlang
More information about the erlang-questions
mailing list