Gregor Kopp
3/8/2006 1:45:00 PM
start the scripts twice, or use a second window.
pseudoman4@yahoo.com schrieb:
> i use FXRuby and try to start a applicattion twice with the following
> code:
>
> require "fox12.so"
> include Fox
>
> def start_fox_app
> application = FXApp.new("FoxTest", "ruby")
> application.init(ARGV)
> window = FXMainWindow.new(application, "FOX", nil, nil, DECOR_ALL,
> 0, 0, 580, 500)
> window.show(PLACEMENT_SCREEN)
> application.create
> application.run
> end
>
> start_fox_app
> start_fox_app
>
> The second call of "start_fox_app" leads to a segmentation fault. The
> same thing
> also occurs if i try to differenet apps
> Any ideas why this can happen and how to prevent this behavior?
>
> hth, Michael
>