[fxruby-users] Custom SplashScreen. Seg fault when wrapped in a class

Lyle Johnson lyle at lylejohnson.name
Thu Dec 4 15:27:44 EST 2008

On Dec 3, 2008, at 7:50 PM, Andreas S wrote:

> I'm writing a custom SplashScreen because I can't convey loading  
> status with FXSplashWindow. While FXSplashScreen does that, it has  
> that OK button to close it. I want it to close by itself when my  
> process is done.
> The following code works fine, but when it is wrapped in a class, I  
> get segmentation fault. Did I make a mistake in the start up  
> sequence? But the fact that it doesn't seg-fault when it is outside  
> of a class, makes it looks like a bug to me.
> Any idea how to work around it?

Your code runs fine for me (i.e. without crashing) when I uncomment  
the lines that "wrap" the main code with the App class. I wonder if  
it's just a timing thing; what happens if you make it sleep a couple  
of seconds (sleep 2 or more) instead of just one?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20081204/54ea2714/attachment.html>

More information about the fxruby-users mailing list