Re: [Mono-dev] Console programs doesn't finish

2005-12-27 Thread Mirco Bauer
On Wed, 2005-12-14 at 08:58 -0600, Carlos Solorzano wrote:
 My programs that don't exit are not as simple as just running some  
 stuff on Main, instead they use a lot of threads (all the ones I have  
 control of background), and I use a lot of remoting with a lot of  
 Marhsal By Ref objects with an infinite lifetime. I would think my  
 problem lies on the use of one of those two but who knows, also  
 sometimes my programs do exit but I can't tell what the difference was.

I found such problem with Remoting too, but I don't remember if the
problem happened on windows or linux neither mono or ms.net, but one of
them was caused by not unregistering the remoted channels. So try to
cleanly unregister all your channels and see if it exists cleanly now.

 
 Let me know if you figure out something :-)
 
 --Carlos

-- 
Regards,

Mirco 'meebey' Bauer

PGP-Key:
http://keyserver.noreply.org/pks/lookup?op=getsearch=0xEEF946C8

-BEGIN GEEK CODE BLOCK-
Version: 3.12
GIT d s-:+ a-- C++ UL$ P L++$+++$ E- W+++$ N o? K- w++! O M-
V? PS
PE+ Y- PGP++ t 5+ X++ R tv+ b+ DI? D+ G++ e h! r-++ y?
--END GEEK CODE BLOCK--


signature.asc
Description: This is a digitally signed message part
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Console programs doesn't finish

2005-12-27 Thread Carlos Solorzano


On Dec 27, 2005, at 5:00 AM, Mirco Bauer wrote:


On Wed, 2005-12-14 at 08:58 -0600, Carlos Solorzano wrote:

My programs that don't exit are not as simple as just running some
stuff on Main, instead they use a lot of threads (all the ones I have
control of background), and I use a lot of remoting with a lot of
Marhsal By Ref objects with an infinite lifetime. I would think my
problem lies on the use of one of those two but who knows, also
sometimes my programs do exit but I can't tell what the difference  
was.


I found such problem with Remoting too, but I don't remember if the
problem happened on windows or linux neither mono or ms.net, but  
one of

them was caused by not unregistering the remoted channels. So try to
cleanly unregister all your channels and see if it exists cleanly now.


I will try that. However a couple of times one of my programs that  
doesn't use remoting didn't exit. It does use background threads  
heavily and just like all of my other programs it uses the Process  
class heavily.


--Carlos





Let me know if you figure out something :-)

--Carlos


--
Regards,

Mirco 'meebey' Bauer

PGP-Key:
http://keyserver.noreply.org/pks/lookup?op=getsearch=0xEEF946C8

-BEGIN GEEK CODE BLOCK-
Version: 3.12
GIT d s-:+ a-- C++ UL$ P L++$+++$ E- W+++$ N o? K- w++! O M-
V? PS
PE+ Y- PGP++ t 5+ X++ R tv+ b+ DI? D+ G++ e h! r-++ y?
--END GEEK CODE BLOCK--


___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Console programs doesn't finish

2005-12-14 Thread Andrés G. Aragoneses

Yes, I suppose it is the same problem because the last line runs but the
control never returns to shell.


Have you guys tried stracing the process?


Thanks for your feedback Miguel.

With the danger of sounding too ignorant, how do I do that? what will it 
tell me at the end? I can probably run a test briefly after I find that 
out.




With the danger of being more ignorant than you, I suppose Miguel is 
talking about http://www.liacs.nl/~wichert/strace/.


BTW, Carlos, in which distro can you reproduce this problem? I ask you 
this because, before trying to strace the process, I will clean all 
other possible causes. The first: I am running MandrivaLE2005 with a 
Mono package from Mandriva2006, which is a situation that I think is not 
supported but under some circumstances it can work. I will upgrade 
completely to Mandriva2006 and then I will try again...


Regards,

Andrew  [ knocte ]

--

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Console programs doesn't finish

2005-12-13 Thread Miguel de Icaza
Hello,

  I don't know if this is the same problem as I have but basically my  
  programs finish, the last line in Main runs but yet control never  
  returns to the shell, the mono processes stay running. I have not  found 
  yet what causes that problem yet or have an small example to  file a bug 
  with.
  
 
 Yes, I suppose it is the same problem because the last line runs but the 
 control never returns to shell.

Have you guys tried stracing the process?
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Console programs doesn't finish

2005-12-13 Thread Carlos Solorzano


On Dec 13, 2005, at 10:23 AM, Miguel de Icaza wrote:


Hello,


I don't know if this is the same problem as I have but basically my
programs finish, the last line in Main runs but yet control never
returns to the shell, the mono processes stay running. I have  
not  found
yet what causes that problem yet or have an small example to   
file a bug

with.



Yes, I suppose it is the same problem because the last line runs  
but the

control never returns to shell.


Have you guys tried stracing the process?


With the danger of sounding too ignorant, how do I do that? what will  
it tell me at the end? I can probably run a test briefly after I find  
that out.



___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list



___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Console programs doesn't finish

2005-12-11 Thread Andrés G. Aragoneses
Hello. I have a strange problem. If I use mono in my Mandriva box my 
programs doesn't finish, I mean, they keep blocked when the execution 
should end. With my SUSE 10.0 they work perfectly, they die when they 
should. But with Mandriva I have to hit CTRL+C to go back to the prompt.


SUSE version:

 mono --version
Mono JIT compiler version 1.1.10, (C) 2002-2005 Novell, Inc and 
Contributors. www.mono-project.com

TLS:   normal
GC:Included Boehm (with typed GC)
SIGSEGV  : normal

Mandriva version:

# mono --version
Mono JIT compiler version 1.1.9.1, (C) 2002-2005 Novell, Inc and 
Contributors. www.mono-project.com

TLS:   __thread
GC:Included Boehm (with typed GC)
SIGSEGV  : normal
Globalization: normal

My sample program:

// project created on 10/12/2005 at 21:42
using System;

class MainClass
{
public static void Main(string[] args)
{
Console.WriteLine(Hello World!);
}
}

Does anybody know why?

Thanks in advance,

Andrew  [ knocte ]

--



___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Console programs doesn't finish

2005-12-11 Thread Carlos Solorzano
I don't know if this is the same problem as I have but basically my  
programs finish, the last line in Main runs but yet control never  
returns to the shell, the mono processes stay running. I have not  
found yet what causes that problem yet or have an small example to  
file a bug with.


--Carlos

On Dec 10, 2005, at 2:49 PM, Andrés G. Aragoneses wrote:

Hello. I have a strange problem. If I use mono in my Mandriva box  
my programs doesn't finish, I mean, they keep blocked when the  
execution should end. With my SUSE 10.0 they work perfectly, they  
die when they should. But with Mandriva I have to hit CTRL+C to go  
back to the prompt.


SUSE version:

 mono --version
Mono JIT compiler version 1.1.10, (C) 2002-2005 Novell, Inc and  
Contributors. www.mono-project.com

TLS:   normal
GC:Included Boehm (with typed GC)
SIGSEGV  : normal

Mandriva version:

# mono --version
Mono JIT compiler version 1.1.9.1, (C) 2002-2005 Novell, Inc and  
Contributors. www.mono-project.com

TLS:   __thread
GC:Included Boehm (with typed GC)
SIGSEGV  : normal
Globalization: normal

My sample program:

// project created on 10/12/2005 at 21:42
using System;

class MainClass
{
public static void Main(string[] args)
{
Console.WriteLine(Hello World!);
}
}

Does anybody know why?

Thanks in advance,

Andrew  [ knocte ]

--



___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list



___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Console programs doesn't finish

2005-12-11 Thread Andrés G. Aragoneses

Carlos Solorzano wrote:
I don't know if this is the same problem as I have but basically my  
programs finish, the last line in Main runs but yet control never  
returns to the shell, the mono processes stay running. I have not  found 
yet what causes that problem yet or have an small example to  file a bug 
with.




Yes, I suppose it is the same problem because the last line runs but the 
control never returns to shell.


Regards,

Andrew  [ knocte ]

--

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list