I'm trying to get allegro-ffi to work with the latest 4.9 branch of allegro in SVN. Allegro has recently changed to run everything in a native callback.
ie..
... setup code ...
al_run_main argc, argv, &method(:run)
puts "this code will never be called"
running this in ruby 1.9.1 I see the error:
examples/simple_window.rb:13: [BUG] object allocation during garbage collection phase
ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-darwin10.2.0]
full trace here:
Allegro spins off a new native thread (os x only) and calls the callback from that native thread. Apparently os x needs the main thread for its event stuff...
Is there anyway to let this new non-ruby native thread call back into ruby code?
/Shawn
To unsubscribe from this group, send email to ruby-ffi+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.