What is Exec format error in daemons

Exec format error - E:/TradingTools/Development/app/helpers/
twsMonitor.rb
e:/ruby/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/daemons/
application.rb:109:in exec' e:/ruby/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/daemons/ application.rb:109:instart_exec’
e:/ruby/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/daemons/
application.rb:230:in start' e:/ruby/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/daemons/ controller.rb:69:inrun’
e:/ruby/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/Daemons.rb:
136:in
run' e:/ruby/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/daemons/ cmdline.rb: 105:incall’
e:/ruby/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/daemons/
cmdline.rb:
105:in catch_exceptions' e:/ruby/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/Daemons.rb: 135:inrun’
E:/TradingTools/Development/app/helpers/Ruby-1.rb:15
e:/ruby/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/daemons/
daemonize.rb:
126:in initialize': stream closed (IOError) from E:/Program Files/ActiveState Komodo IDE 4.2/lib/support/ dbgp/ rubylib/rdbgp/interface.rb:96:injoin’
from E:/Program Files/ActiveState Komodo IDE 4.2/lib/support/
dbgp/
rubylib/rdbgp/interface.rb:96:in end_session' from E:/Program Files/ActiveState Komodo IDE 4.2/lib/support/ dbgp/ rubylib/rdbgp/interface.rb:162:inshutdown’
from E:/Program Files/ActiveState Komodo IDE 4.2/lib/support/
dbgp/
rubylib/rdbgp/processor.rb:118:in shutdown' from E:/Program Files/ActiveState Komodo IDE 4.2/lib/support/ dbgp/ rubylib/rdbgp/processor.rb:386:inwrap_up’
from E:/Program Files/ActiveState Komodo IDE 4.2/lib/support/
dbgp/
rubylib/rdbgp/processor.rb:366:in each' from E:/Program Files/ActiveState Komodo IDE 4.2/lib/support/ dbgp/ rubylib/rdbgp/processor.rb:366:inwrap_up’
from E:/Program Files/ActiveState Komodo IDE 4.2/lib/support/
dbgp/
rubylib/rdbgp/loader.rb:106:in wrap_up' from E:/Program Files/ActiveState Komodo IDE 4.2/lib/support/ dbgp/ rubylib/rdbgp/loader.rb:133 from E:/Program Files/ActiveState Komodo IDE 4.2/lib/support/ dbgp/ rubylib/rdbgp/loader.rb:132:inskip’
from E:/Program Files/ActiveState Komodo IDE 4.2/lib/support/
dbgp/
rubylib/rdbgp/loader.rb:132
from e:/ruby/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/
daemons/
cmdline.rb:110
e:/ruby/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/daemons/
application.rb:109:in exec': Exec format error - E:/TradingTools/ Development/app/helpers/twsMonitor.rb (Errno::ENOEXEC) from e:/ruby/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/ daemons/ application.rb:109:instart_exec’
from e:/ruby/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/
daemons/
application.rb:230:in start' from e:/ruby/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/ daemons/ controller.rb:69:inrun’
from e:/ruby/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/
Daemons.rb:
136:in run' from e:/ruby/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/ daemons/ cmdline.rb:105:incall’
from e:/ruby/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/
daemons/
cmdline.rb:105:in catch_exceptions' from e:/ruby/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/ Daemons.rb: 135:inrun’
from E:/TradingTools/Development/app/helpers/Ruby-1.rb:15

my code looks like this
require “Daemons”
options = {
:app_name => “my_app”,
:ARGV => [‘start’, ‘-f’],
:dir_mode => :script,
:dir => ‘pids’,
:multiple => true,
:ontop => true,
:mode => :exec,
:backtrace => true,
:monitor => true,
:script => “E:\TradingTools\Development\app\helpers\”
}
filename=“E:\TradingTools\Development\app\helpers\twsMonitor.rb”
Daemons.run(filename, options)