[Mono-dev] Embedded Mono/Program freezes
robertj at gmx.net
Fri Aug 18 19:23:37 EDT 2006
Janne Rantala wrote:
>> Now to the bug: Web servers usually deny more then 2 open
>> connections from a specific client. Since your server
>> acts on behalf of its clients, you're probably somehow
>> reaching the limit.
> After reading your reply I thought that this must have been the
> reason. So I set up a web server to my machine and tried accessing one
> service from there. First went ok, but second attempt gave "The
> request timed out" message. First and successful attempt was logged in
> web server but there was no trace of the second one.
> I think that the reason I thought that program froze earlier was
> because I tried accessing public server and it just kept waiting so
> But it definitely looks like Mono is trying to do something but fails?
Indeed, the parallel connections are probably not (yet) the
You wrote that you're using mono_runtime_exec_managed_code ().
If I understand the code correctly, the function will shutdown
the runtime after the callback terminates. That's probably not
what you expect, isn't it?
Try mono_thread_attach () instead of *_exec_managed_code ().
Note that runtime must reside in a DLL, otherwise
mono_thread_attach () would fail under Windows.
More information about the Mono-devel-list