Bugs: Browse | Submit New | Admin

[#22636] Rice::VM(char * app_name) does not work

Date:
2008-10-31 16:04
Priority:
3
Submitted By:
Oliver Schneider (ker)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Rice::VM(char * app_name) does not work

Detailed description
creating a VM object through the direct constructor does not work at all, it simply freezes the program somewhere in
some exception handling stuff inside ruby

example1 (this starts looping):

Rice::VM * vm = new Rice::VM("/home/oliver/testfile.rb");

example2 (how it works):

char test[] = "/home/oliver/testfile.rb";
char nothing[] = "anything";
char * arguments[2] = {nothing, test};

Rice::VM * vm = new Rice::VM(2, arguments);

maybe this happens because ruby tries to drop the first argument since that is (on linux) the filename of the executable

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item