Hey,
i have the fallowing simple code:
#include <ruby.h>
int main(int argc, char **argv)
{
ruby_sysinit(&argc, &argv);
}
I get here (win32: function: rb_w32_cmdvector) :
http://www.loaditup.de/files/827637_3ng9qkbkst.png
this Error:
http://www.loaditup.de/files/827638_cd5bn3drs4.png
Why this happen? I do exactly the same like Rubys main.c
Which look like this:
int main(int argc, char **argv)
{
#ifdef RUBY_DEBUG_ENV
ruby_set_debug_option(getenv(“RUBY_DEBUG”));
#endif
#ifdef HAVE_LOCALE_H
setlocale(LC_CTYPE, “”);
#endif
ruby_sysinit(&argc, &argv);
{
RUBY_INIT_STACK;
ruby_init();
return ruby_run_node(ruby_options(argc, argv));
}
}
the error makes no sense in my opinion, cause in the same function the
string gets cloned:
ptr = cmdline = strdup(cmd);
and Ruby.exe also still runs
i realy don’t know what i do wrong, i realy need some help…
With best regards
Julian