# Information on Hosting Ruby.Console?

**URL:** <https://www.ruby-forum.com/t/information-on-hosting-ruby-console/145453>\
**Category:** IronRuby\
**Created:** [August 9, 2008, 9:09pm UTC](https://www.ruby-forum.com/t/information-on-hosting-ruby-console/145453 "2008-08-09T21:09:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/3d9bf3/32.png) [@jcain](https://www.ruby-forum.com/u/jcain)\
**Post date:** [August 9, 2008, 9:09pm UTC](https://www.ruby-forum.com/t/information-on-hosting-ruby-console/145453/1 "2008-08-09T21:09:52Z")

</div>

I’m working on a project where I would like to host the IronRuby  
console, and I’m getting some stack overflow exceptions. I’ve met the  
end of my own knowledge, so I’m wondering if there is more information  
available anywhere about doing something like this?

I was just modifying my copy of the Ruby.Console project in the  
IronRuby source, but I would really like to break this into a separate  
project. I started with a blank console app, and straight code copy  
over, and it builds, and even starts, but anything typed into the  
console causes the exception. I thought it might have been because I  
had targeted the wrong .Net version, but I fixed that.

Any ideas?

-Josh

---

<div class="post-metadata">

**Author:** ![jcain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/3d9bf3/32.png) [@jcain](https://www.ruby-forum.com/u/jcain)\
**Post date:** [August 9, 2008, 10:52pm UTC](https://www.ruby-forum.com/t/information-on-hosting-ruby-console/145453/2 "2008-08-09T22:52:21Z")

</div>

Can you provide more details? Where did it stack overflow?

Tomas

---

<div class="post-metadata">

**Author:** ![jcain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/3d9bf3/32.png) [@jcain](https://www.ruby-forum.com/u/jcain)\
**Post date:** [August 11, 2008, 4:19pm UTC](https://www.ruby-forum.com/t/information-on-hosting-ruby-console/145453/3 "2008-08-11T16:19:45Z")

</div>

Tomas,

Thanks for your reply. Information inline.

On Sat, Aug 9, 2008 at 3:37 PM, Tomas M.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Can you provide more details? Where did it stack overflow?

The exact exception is:

“An unhandled exception of type ‘System.StackOverflowException’  
occurred in mscorlib.dll”

The debugger points to line line 53 in matchmaker.cs:

```
            if (method != null) {

```

-this line–\> method = method.MakeGenericMethod(args);  
return (T)(object)Delegate.CreateDelegate(target,  
this, method);  
}

The specific message is:

“Cannot evaluate expression because the current thread is in a stack  
overflow state.”

I thought it may have been a permissions issue, because the only way I  
could get IronRuby to compile was by running as Administrator, but  
this did not fix the problem either.

---

<div class="post-metadata">

**Author:** ![jcain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/3d9bf3/32.png) [@jcain](https://www.ruby-forum.com/u/jcain)\
**Post date:** [August 13, 2008, 12:19pm UTC](https://www.ruby-forum.com/t/information-on-hosting-ruby-console/145453/4 "2008-08-13T12:19:23Z")

</div>

Including IronLibrary.Libraries.dll into your project will make it work.  
And you should probably file a bug on RubyForge – we should give a more  
reasonable error message when this module is missing instead of  
overflowing the stack.

---

<div class="post-metadata">

**Author:** ![jcain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/3d9bf3/32.png) [@jcain](https://www.ruby-forum.com/u/jcain)\
**Post date:** [August 11, 2008, 6:32pm UTC](https://www.ruby-forum.com/t/information-on-hosting-ruby-console/145453/5 "2008-08-11T18:32:54Z")

</div>

Could you sent full stack trace and the command you are executing on the  
command line?

Tomas

---

<div class="post-metadata">

**Author:** ![jcain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/3d9bf3/32.png) [@jcain](https://www.ruby-forum.com/u/jcain)\
**Post date:** [August 13, 2008, 1:39pm UTC](https://www.ruby-forum.com/t/information-on-hosting-ruby-console/145453/6 "2008-08-13T13:39:42Z")

</div>

Curt,

You rock my socks off. Why didn’t I catch that! Thanks for the tip,  
and I’ve entered the bug report at RubyForge.

Josh

On Tue, Aug 12, 2008 at 12:14 PM, Curt H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Including IronLibrary.Libraries.dll into your project will make it work. And you should probably file a bug on RubyForge – we should give a more reasonable error message when this module is missing instead of overflowing the stack.
