From: student_vienna@... (daniel) Date: 2003-04-17T20:21:24+09:00 Subject: extension - redirect a block hello, I'v wrote an extension for a dll and at last I have to implement a callback function. My code. --- 8< --- def Callback_fn( var ) print "\7" print " **************************** callback [#{var}] *** \n\r" end rv = RubyVSCL.new rv.rPAInit { |a| Callback_fn(a) } [...] --- 8< --- In my C-Function for rPAInit I check if rb_block_given_p and call rb_yield - this works fine. But in my thread which is listen on ``com1å¹¹, rb_block_given_p says that no block is given. How to ``redirectå¹¹ the block in the init function? greetings, daniel