P
pseudoman4
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
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