problem wth rubyclr and win32 service

M

Miika Parvio

I'm writing ruby application which should be run under windows service
by using ruby's win32 service -library. I'd want to call some dotnet
-libraries from my service implementation by using rubyclr-library.

My problem is that ruby.exe crashes (When I'm trying to start my
service) if I include rubyclr-library in my service implementation in
the following way:
require 'rubyclr'

What do I do wrong? I have installed win32 service(0.5.2) and rubyclr
(0.5.2)gems and necessarry dependencies. My service works fine without
require 'rubyclr' -line (without dotnet features) so I thinkg that
structure of my service should be written correctly.

Miika
 
P

Phillip Gawlowski

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Miika Parvio wrote:
| I'm writing ruby application which should be run under windows service
| by using ruby's win32 service -library. I'd want to call some dotnet
| -libraries from my service implementation by using rubyclr-library.
|
| My problem is that ruby.exe crashes (When I'm trying to start my
| service) if I include rubyclr-library in my service implementation in
| the following way:
| require 'rubyclr'

What error do you get?

Is RubyCLR compatible to the .NET version you are using?


- --
Phillip Gawlowski
Twitter: twitter.com/cynicalryan

~ - You know you've been hacking too long when...
...your friends who aren't hackers wonder what happened to you.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgMmWwACgkQbtAgaoJTgL+jfwCgnrKk3ubF+AgBhgnim7sXrMHD
wWoAnjyMi2FOPKBWb3oZxzo78LujzxA3
=YJu9
-----END PGP SIGNATURE-----
 
M

Miika Parvio

Phillip Gawlowski kirjoitti:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Miika Parvio wrote:
| I'm writing ruby application which should be run under windows service
| by using ruby's win32 service -library. I'd want to call some dotnet
| -libraries from my service implementation by using rubyclr-library.
|
| My problem is that ruby.exe crashes (When I'm trying to start my
| service) if I include rubyclr-library in my service implementation in
| the following way:
| require 'rubyclr'

What error do you get?

Is RubyCLR compatible to the .NET version you are using?


That's the problem is. I don't get any ruby error message. I get only
error window for sending error report to microsoft. There is the
following text in error window: "Ruby interpreter (CUI) 1.8.6
[i386-mswin32] has encountered a problem and needs to close"

I'm using .NET 2.0 and when I write normal ruby application and use
RubyCLR, everything works fine.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,681
Members
48,796
Latest member
Greg L.

Latest Threads

Top