Bill,

That was a great guess...it worked........thank you very much.....but
could you pls explain what the following statement does:

How a pointer is treated in ruby..I mean what happens to this statement
",['P','P','P'],'L')

and does these below statement means:

dwerror_ = [0].pack("l")
dwnum_   = [0].pack("l")
dwtest_  = [0].pack("l")

dwerror = dwerror_.unpack("l").first
dwnum   = dwnum_.unpack("l").first
dwtest  = dwtest_.unpack("l").first

orelse give me some point to ruby documentation, that is fine.