Hi to all I have a simple library (extension) for ruby... Here is an tes script for this library test.rb if ARGV.include?("local") require "../../bin/libagisRubySrv" else require "/usr/lib/libagisRubySrv" end a = AGIS::RubyBinder.new puts "a: #{a}" someStr = "1234567890" sz = someStr.length; puts "strlength: #{sz}" result = a.resolveCmd(someStr) puts "result: #{result}" It is working perfectly. Its out: a: #<AGIS::RubyBinder:0xb7d185f0> strlength: 10 result: received data size: 10 But when I try to make the same in RoR controller... $:.push ''lib'' require ''/home/valden/_AGIS/bin/librubySrv'' require ''logger'' class SourceController < ApplicationController before_filter :authenticate def getBoundingBox logger = Logger.new(''log/main.3000.log'') logger.debug ''====='' binder = AGIS::RubyBinder.new logger.debug "bnd: #{binder}" testStr = "1234567890" result = binder.resolveCmd(testStr) logger.debug "result: #{result}" render_ok end end in out file I get ====bnd: #<AGIS::RubyBinder:0xb71eb6dc> result: #<AGIS::RubyBinder:0xb71eb6dc> Why??? :((((( Regards Denis V. Valchuk P.S. In attachment sources of the library... Attachments: http://www.ruby-forum.com/attachment/191/RubyBinder.zip -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---