Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
Todd Phillips #1
Strange Behavior
The problem seems to be in c code calling ruby calling c code.
======== start test.rb
puts "about to require curses"
require "curses"
puts "curses loaded"
======== end test.rb
======== start simple.c
#include "ruby.h"
int main()
{
ruby_init();
ruby_init_loadpath();
rb_require("test.rb");
return 0;
}
======== end simple.c
$ ruby test.rb
about to require curses
curses loaded
$ gcc -o simple -I/usr/lib/ruby/1.6/i386-linux/ simple.c
-L/usr/lib/ruby/1.6/i386-linux/ -lruby -ldl -lcrypt -lm
$ ./simple
about to require curses
../test.rb:2: [BUG] Segmentation fault
ruby 1.6.7 (2002-03-19) [i386-linux]
Aborted
There is nothing special about the curses extension, this happens for any
extensions. I don't know what to do about this, and I'd appreciate any
help beyond the level of "re-install a new version of ruby" since I don't
have control over this distribution.
I've made this work on a Darwin6.6 machine, so I suspect there is some
disagreement between these guys:
$ gcc --version
2.96
$ ruby --version
ruby 1.6.7 (2002-03-19) [i386-linux]
Any ideas would be appreciated.
Thanks,
Todd
Todd Phillips Guest
-
Strange behavior of $.
Apparently $. is not always set correct (see second ruby 1liner). Is this a bug? 12:12:42 : cat -n n 1 2 3 BAR="hello" 4 12:12:47 : ruby... -
Re[2]: Strange behavior of DBI/DBD::Informix
Thank you for the reply. Sorry, I wrote late in the evening and forgot to post my configuration: Perl 5.6.1 AIX 4.2.1 (I know it's old... -
Strange behavior of DBI/DBD::Informix
I tried sending this problem to the address specified in DBD::Informix::TechSupport (perldoc) - dbd-informix@us.ibm.com but... -
Strange behavior of DBD/DBI Informix
I am not sure if this list is the best one to post to regarding this problem. If not please point me to the better one. Consider the following... -
Why strange IF...ELSE behavior
Hi all, I'm getting a strange result with the following IF statement: $bar = ($foo == 'last') ? true : false; In my script $foo normaly has... -
Yukihiro Matsumoto #2
Re: Strange Behavior
Hi,
In message "Strange Behavior"
on 03/10/03, Todd Phillips <tp517@andrew.cmu.edu> writes:
|The problem seems to be in c code calling ruby calling c code.
|$ gcc -o simple -I/usr/lib/ruby/1.6/i386-linux/ simple.c
|-L/usr/lib/ruby/1.6/i386-linux/ -lruby -ldl -lcrypt -lm
On Linux, you need to specify -rdynamic, if you want to load extension
from your program.
matz.
Yukihiro Matsumoto Guest
-
Shawn #3
Strange behavior
I have a DataGrid with 5 boundcolumns. The first 4 are visible, but the
fifth one has visibility set to false. In my codebehind file I have a
myDataGrid_ItemDataBound method where I try and set it's visibility to true.
Like this: e.Item.Cells(4).Visible = True . This does not work, but the
strange thing is that it works if I do it the other way around. If the
boundcolumn has visibility set to true then I can set it to false
myDataGrid_ItemDataBound.. I'm sure there is a logically explanation to
this. I just haven't found it.....
Shawn
Shawn Guest



Reply With Quote

