[Mono-devel-list] Thread SpinWait not supported? Interrupt ?

2005-07-31 Thread ted leslie

Unhandled Exception: System.NotImplementedException: The requested feature is 
not implemented.
in 0x0001d System.Threading.Thread:SpinWait (Int32 iterations)
in 0x00072 ServerClass:StaticMethod ()
in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void ()


I tried a Thread.SpinWait / Interrupt demo program ...
and mono doesn't support SpinWait ? Its an inefficent function, but if someone 
were to use it
in MS .Net and expect there code to work on Mono? 

Then having said that,  SpinWait and Interrupt seem to be a matching pair,
so without SpinWait, what is Interrupt going to be used for? It doesn't seem to 
Interrupt Sleep().

Search of archives shows 2002/2003 mail-list items saying its a TODO, and not 
high priority 

I have read some workarounds, but I can't help but think if  Interrupt is 
supposed to also interrupt a Sleep,
this would be handy.

Is there a big implementation delima? Or is it not considered a high priority?

On to the suggested work around ... 

On Fri, 2003-02-28 at 11:53, Yury Serdyuk wrote:
 Hi !
 
 We see in the List of not-implemented classes that
 the Interrupt - method didn't realized yet.
 In particular, the following program  doesn't work properly  :
 
 But this function is very important for multithreading applications.
 So,  tell us about the current status of this problem,

Thread.Interrupt() has not been implemented, and it is way down on my
todo list.

 or is there a walk-around of it ?

Use events to signal state changes between threads?

- Dick


-tl



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


[Mono-devel-list] Is there an order for compiling?

2005-07-31 Thread Paul
Hi,

I'm writing a front end to my monoupdater script and have a simple
question. Is there an order as to where things should be compiled along
the chain?

For example, it looks like it should be

mono/mcs - libgdiplus - gtk-sharp - gtkmozembed - gtksourceview -
monodoc - monodevelop

(mono compiled first and so on).

This holds fine for the above, but are there any others which need to
follow the above sort of route? 

TTFN

Paul
-- 
Some people will do anything for a woman in uniform - The Doctor -
Unregenerate (Big Finish audio)


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


[Mono-devel-list] Services and eventlogs

2005-07-31 Thread Casper Hornstrup
I'm porting my .NET application to Mono 1.1 on Fedora Core 4.
My application use .NET 1.1 APIs including Services, remoting,
ASP.NET webapplications and ASP.NET webservices.

My application has two services. How do you register the
services on Mono/Linux? I'm looking for the equivalent of
installutil.exe on Windows.

My application does its logging using the eventlog APIs. I
cannot figure out where the eventlog entries are stored on
Mono/Linux. Where are they stored? My application write only
plaintext to the eventlog, not binary data.

Casper


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


RE: [Mono-devel-list] Thread SpinWait not supported? Interrupt ?

2005-07-31 Thread Gary M. Smithrud
I think that this answers it:

Search of archives shows 2002/2003 mail-list items saying its a TODO,
and not high priority 

And it's probably still not a high priority.  SpinWait is a more
efficient wait then the standard blocking mechanism (in most cases), but
since it is only a more efficient version of Wait it is not implemented
yet.  SpinWait goes into a loop to grab the lock before giving up and
entering the wait state...and no, it is actually more efficient because
if you can grab the lock before entering the wait state, the better the
performance.

Gary M. Smithrud
Haley Systems, Inc.
Phone: 724-934-7853
[EMAIL PROTECTED]
www.haley.com
Moving at the Speed of Change

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of ted
leslie
Sent: Sunday, July 31, 2005 2:37 AM
To: mono-devel-list@lists.ximian.com
Subject: [Mono-devel-list] Thread SpinWait not supported? Interrupt ?


Unhandled Exception: System.NotImplementedException: The requested
feature is not implemented.
in 0x0001d System.Threading.Thread:SpinWait (Int32 iterations)
in 0x00072 ServerClass:StaticMethod ()
in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void ()


I tried a Thread.SpinWait / Interrupt demo program ...
and mono doesn't support SpinWait ? Its an inefficent function, but if
someone were to use it
in MS .Net and expect there code to work on Mono? 

Then having said that,  SpinWait and Interrupt seem to be a matching
pair,
so without SpinWait, what is Interrupt going to be used for? It doesn't
seem to Interrupt Sleep().

Search of archives shows 2002/2003 mail-list items saying its a TODO,
and not high priority 

I have read some workarounds, but I can't help but think if  Interrupt
is supposed to also interrupt a Sleep,
this would be handy.

Is there a big implementation delima? Or is it not considered a high
priority?

On to the suggested work around ... 

On Fri, 2003-02-28 at 11:53, Yury Serdyuk wrote:
 Hi !
 
 We see in the List of not-implemented classes that
 the Interrupt - method didn't realized yet.
 In particular, the following program  doesn't work properly  :
 
 But this function is very important for multithreading applications.
 So,  tell us about the current status of this problem,

Thread.Interrupt() has not been implemented, and it is way down on my
todo list.

 or is there a walk-around of it ?

Use events to signal state changes between threads?

- Dick


-tl



___
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-devel-list] Why Cannot find type 'TcpChannel'?

2005-07-31 Thread Nenad Lecek





Dear all,

I just started with Mono, version 1.1.8 on WinXP with SP1 and failed to
compile example bellow with following error:

C:\Projects\Mono\examples\remoting\example8_mymcs server.cs
server.cs(10) error CS0246: Cannot find type 'TcpChannel'
Compilation failed: 1 error(s), 0 warnings

What should be done to use TcpChannel with Mono?
Thanks.

Best regards
Nenad

File "server.cs":
using System;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
//using System.Runtime.Remoting.Channels.Tcp;

public class CoHello : MarshalByRefObject
{
 public static void Main()
 {
  TcpChannel channel = new TcpChannel(4000);
  ChannelServices.RegisterChannel(channel);
  
  RemotingConfiguration.RegisterWellKnownServiceType
(typeof(CoHello), "HelloDotNet", WellKnownObjectMode.Singleton);
  System.Console.WriteLine("Hit enter to exit ...!");
  System.Console.ReadLine();
 }
 
 public void SayHallo()
 {
  Console.WriteLine("Hello, Universe of .Net and Mono");
 }
}






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


[Mono-devel-list] SocketException vs. RemotingException

2005-07-31 Thread Casper Hornstrup
Hi.

When attempting to instanciate a remoting object which is not
available (i.e. no service is listening on the port), .NET 1.1
throws a SocketException while Mono 1.1 throws a RemotingException.


internal static bool IsResynchronizationEnabled()
{
BaseRemoteIntegrationObject integrationObject = 
(BaseRemoteIntegrationObject)
Activator.GetObject(typeof(BaseRemoteIntegrationObject),

IntegrationManagerAccess.IntegrationManagerRemotingUrl);
return integrationObject.IsResynchronizationEnabled();
}


private bool IsResynchronizationEnabled()
{
try
{
return Global.IsResynchronizationEnabled();
}
catch (SocketException) /* .NET */
{
return false;
}
catch (System.Runtime.Remoting.RemotingException) /* Mono */
{
return false;
}
}



Server error in '/' application



Description: Error processing request. 
Error Message: HTTP 500. 

Stack Trace: System.Runtime.Remoting.RemotingException: Connection refused

Server stack trace: 
in 0x000b4 
System.Runtime.Remoting.Channels.Tcp.HostConnectionPool:CreateConnection ()
in 0x00114 
System.Runtime.Remoting.Channels.Tcp.HostConnectionPool:GetConnection ()
in 0x000fd 
System.Runtime.Remoting.Channels.Tcp.TcpConnectionPool:GetConnection 
(System.String host, Int32 port)
in 0x00105 
System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink:ProcessMessage 
(IMessage msg, ITransportHeaders
requestHeaders, System.IO.Stream requestStream, ITransportHeaders 
responseHeaders, System.IO.Stream responseStream)
in 0x0024b 
System.Runtime.Remoting.Channels.BinaryClientFormatterSink:SyncProcessMessage 
(IMessage msg)

Exception rethrown at [0]: 

in 0x000b4 
System.Runtime.Remoting.Channels.Tcp.HostConnectionPool:CreateConnection ()
in 0x00114 
System.Runtime.Remoting.Channels.Tcp.HostConnectionPool:GetConnection ()
in 0x000fd 
System.Runtime.Remoting.Channels.Tcp.TcpConnectionPool:GetConnection 
(System.String host, Int32 port)
in 0x00105 
System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink:ProcessMessage 
(IMessage msg, ITransportHeaders
requestHeaders, System.IO.Stream requestStream, ITransportHeaders 
responseHeaders, System.IO.Stream responseStream)
in 0x0024b 
System.Runtime.Remoting.Channels.BinaryClientFormatterSink:SyncProcessMessage 
(IMessage msg)



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


[Mono-devel-list] Serializing widgets with C#

2005-07-31 Thread Alfredo Jose Muela Romero

Hi everybody,

I'm new to this list, I have look up the answer to my question trough
the list's files but I haven't found it so I'll make it: how can I make
it to serialize an object which contains an array of Gtk.Widgets since
for serializing I need to mark the classes with [Serializable]? In other
words, how can I serialize an object with 3rd party objects whithin?

Thanks in advance,


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