Re: [Mono-dev] VisualwebGUI 6.0.4, Framework 2.0 working with Linux + Mono.

2008-08-09 Thread Alejandro Serrano
As far as I can see, the method just jumps a lot before doing something
useful, and then it just loads an static field. I can't find a place
where things can go wrong, maybe some static constructor is called
before getting the value of the static field.

I hope it helps

El sáb, 09-08-2008 a las 02:10 -0700, Stephanus van Staden escribió:
 
 I did some further testing and tried to see if my 64bit issue will go away
 on a another platform and another version of Mono.  I think I must mention
 that this work with Microsoft .Net 2.0
 I'm now trying to find where the problem lies - Mono or WebGUI
 
 So I tried Opensuse 10.2 (32 bit x86)  - Mono JIT compiler version 2.1 -
 Latest VisualWebGUI 6.1.2
 
 I now even get the error on 32 bit - the same problem - so I disassemled the
 function that give the problem and it seems like the Mono does not like
 IL_0006 (see below).  I do not have any experience in the IL stuff - but it
 seems like something to do with the way an if/switch statement is compiled
 and then obfuscated  (I'm just guessing...)
 Maybe it is obvious to someone else who knows the IL stuff by heart.
 
 .method assembly hidebysig specialname static 
 bool  get_CacheOK() cil managed
 {
   // Code size   31 (0x1f)
   .maxstack  8
   IL_:  nop
= 'nop' mean 'no operation', it does nothing
   IL_0001:  nop
   IL_0002:  ldc.i4.1
= load a 1 into memory
   IL_0003:  br.s   IL_0012
= jump to 12
   IL_0005:  nop
   IL_0006:  brfalse.s  IL_000b
= jump if false, but we have a 1, so continue
   IL_0008:  nop
   IL_0009:  br.s   IL_0018
= jump to 18
   IL_000b:  ldc.i4.1
   IL_000c:  brfalse.s  IL_0015
   IL_000e:  br.s   IL_
   IL_0010:  br.s   IL_0014
   IL_0012:  br.s   IL_0005
= jump to 5
   IL_0014:  nop
   IL_0015:  ldc.i4.0
   IL_0016:  brtrue.s   IL_0002
   IL_0018:  nop
   IL_0019:  ldsfld bool Gizmox.WebGUI.Server.Cache::'12AA0'
= do actual work: load a field
   IL_001e:  ret
= return the field we just loaded into memory
 } // end of method Cache::get_CacheOK


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


Re: [Mono-dev] Using the System.Linq library

2007-04-06 Thread Alejandro Serrano
The C# compiler does not support extension methods yet. So you must call
the methods directly from the Queryable class, something like:

using System;
using System.Linq;
using System.Collections.Generic;

public class Bla {
public static void Main() {
 Listint first  = new Listint(new int[] { 0, 1, 2, 3, 4, 5, 6, 7, 
8, 9 });
 Listint second = new Listint(new int[] { 4, 5, 6,  
   10 });

 IEnumerableint q = Queryable.Except(first, second); == here it is
 int x = Enumerable.Countint(first);

 foreach (int num in q)
  Console.WriteLine(num);
}
}



marek safar escribió:
 Hello Mark,

   
 I'm trying to use the System.Linq library, but i don't know how. It's in
 System.Core, so i used:

 gmcs -langversion:linq -r:System.Core Bla.cs 
 gmcs -langversion:linq -r:/home/mark/local/lib/mono/2.0/System.Core.dll 
 Bla.cs
 

 Yes, that's right syntax for code which uses C# 3.0 features.

   
 On the file:

 http://ijbema.home.fmf.nl/Bla.cs

 Can anyone tell me how to compile this file so i can use the provided
 extension methods in Enumerable.cs?
 

 Your code is correct but you hit a bug in our compiler.
 Please fill a bug report in http://bugzilla.ximian.com

 Regards,
 Marek
   

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


[Mono-dev] Error on 'make install' in latest SVN revision

2006-09-03 Thread Alejandro Serrano
Hi,
I'm just recompiling my entire Mono installation with the latest sources
from SVN. Two days ago everything worked fine but now I get the
following error when doing make install on mono:

make install-local
make[7]: se ingresa al directorio `/home/serras/mono-svn/mcs/class/System'
MONO_PATH=../../class/lib/net_1_1_bootstrap:$MONO_PATH
/home/serras/mono-svn/mono/runtime/mono-wrapper 
../../class/lib/net_1_1_bootstrap/gacutil.exe /i
../../class/lib/net_2_0/System.dll /f  /root /usr/lib /package 2.0
Failure adding assembly to the cache: The file specified is not a valid
assembly.
make[7]: *** [install-local] Error 1

I don't know where could this error come from, because there's no error
in make.


__ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Mono.Cecil: Full names of generic types

2006-07-22 Thread Alejandro Serrano

 --- Matej Urbas [EMAIL PROTECTED] escribió:

 Hi
 
 I'm working on code completion (generics support) in
 MonoDevelop and I'm 
 making extensive use of Mono.Cecil.
 
 I have a few questions about the way Mono.Cecil
 decorates full names of 
 generic types:
 
 1. All generic types have such a string appended to
 their full name: 
 `# - where # represents the number of generic
 parameters. Is this a 
 standard way of decorating generic names? If it is,
 can you point me to 
 a document that specifies this? (I need it mostly
 because I'm 
 interested, but I also expect to be using it when
 extracting undecorated 
 names for code completion in monodevelop.)

Decorating generic types with a grave (`) and the
number of generic parameters is the way the CLI
represents generic types, so we could have:

FuncA = Func`1A
FuncA, B = Func`2A, B

because the runtime imposes that all types must have
different names. It is well documented in the ECMA
Standard papers for the CLI.

Hope this helps,
Alejandro Serrano





__ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] ActionT used

2006-07-11 Thread Alejandro Serrano
public void ForEach (Node node, ActionNode action)
{
action (node)
foreach (Node child in this.Subnodes) ForEach (child, action);
}

Hope this helps ;-)

Other solution would be using IEnumerable

public class Node : IEnumerableNode
{
...

public IEnumeratorNode EnumerateDescendants ()
{
   QueueNode todo = new QueueNode ();
   todo.Enqueue (this);
   while (todo.Count  0)
   {
  Node node = todo.Enqueue ();
  yield node;
  foreach (Node child in node.Subnodes) todo.Enqueue (child);
   }
}
}

Now you can use:

foreach (Node node in firstNode.EnumerateDescendants ())
doWhatYouWant (node);

Alejandro Serrano


Piotr Zurek escribió:
 Hi guys,

 I have created a simple tree structure using ListT.
 Below is the metod that I use to count all the nodes in that structure.

 public void CountDescendants()
 {
 _totalcount = 0;
 QueueNode todo = new QueueNode();
 todo.Enqueue(this);
 while (todo.Count  0)
 {
 Node node = todo.Dequeue();
 foreach (Node child in Node.Subnodes) todo.Enqueue(child);
 _totalcount++;
 }
 }

 I have been podering on how to create a simple ForEach method for my
 Node class that would allow me executing different commands on all
 elements of the tree.
 Probably the ActionT delegate is the way to go here but I ain't got
 a clue how to use it. Any ideas?

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

   





__ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] get-monolite-latest does not work

2006-07-09 Thread Alejandro Serrano
Hi,
This morning I was going to recompile all my Mono sources, so I
uninstalled, cleaned and svn-updated everything. However, when I came to
the step of make get-monolite-latest a file of 0 kbs is returned. What
happened to the tar.gz file?

Thanks in advance,
Alejandro Serrano


__ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Using Ilasm parser on other applications

2006-05-07 Thread Alejandro Serrano
Is there any way I could use the parser that Ilasm
uses to obtain the set of classes, methods,
properties, etc... from an IL source file? I don't
mind making some rework, although I think this parser
could address my needs if I got some way to use it
just not for plain code generation.

Thanks in advance,
Serras



__ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Using Ilasm parser on other applications

2006-05-07 Thread Alejandro Serrano
I mean getting the IL source file and parsing it to get the methods, 
classes, defined in the file..., something like an IDE does with source 
codes. Does Cecil implement this functionality? I thought it just worked 
for already compiled assemblies. Which classes should I use for the task?


Serras

Andreas Nahr escribió:

Why not just use Cecil?
That would work for any IL, not just (but also) ILAsm source...

- Original Message - From: Alejandro Serrano [EMAIL PROTECTED]
To: mono-devel-list@lists.ximian.com
Sent: Sunday, May 07, 2006 5:13 PM
Subject: [Mono-dev] Using Ilasm parser on other applications



Is there any way I could use the parser that Ilasm
uses to obtain the set of classes, methods,
properties, etc... from an IL source file? I don't
mind making some rework, although I think this parser
could address my needs if I got some way to use it
just not for plain code generation.

Thanks in advance,
Serras



__
LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list








__ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com

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


Re: [Mono-dev] LINQ Standard Query Operators for Mono

2005-12-18 Thread Alejandro Serrano

Alejandro Serrano escribió:


Some comments:

- You can try standalone dll build by : make PROFILE=net_2_0.
  On windows it would also work:
  make PROFILE=net_2_0 CSCOMPILE=csc

- We have our own coding styles.
  http://www.mono-project.com/Coding_Guidelines
  If you want I can make all changes for your sources (but
  you will have to merge things by yourself to sync to the
  repositry unless you have exactly no changes in your
  local disk).

- AssemblyInfo.cs would better be moved to
  System.Query/Assembly directory.
  Also, System.Query/System.Query/Sequence/*.cs files would
  better be merged into System.Qyery/System.Query/*.cs



I'll make the changes by myself and post them again to the list.


I attach another .tar.gz file with the required changes. The Sequence/* 
files have been moved by preceeding it with Sequence* (I mean 
System.Query/System.Query/Sequence/Set.cs is now 
System.Query/System.Query/SequenceSet.cs


System.Query.tar.gz
Description: GNU Zip compressed data
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] LINQ Standard Query Operators for Mono

2005-12-11 Thread Alejandro Serrano

Hi,
I'm currently working on implementing the LINQ Standard Query Operators 
(http://msdn.microsoft.com/netframework/future/linq) from the latest 
Microsoft bits. I'm not working,however, on DLinq, XLinq or any other 
parts from this idea. Although it's not in an even pre-release stage, I 
think this classes in System.Query could help everyone using .NET or Mono.
I'm currently using the Nemerle programming language, and I would like 
to post the code to anywhere in Mono, so it can be included or used by 
the entire community. Which is the best place to do that?


Thanks in advance,
Serras

P.D.: I have no name, but System.Query is OK ;-)


__ 
Renovamos el Correo Yahoo! 
Nuevos servicios, más seguridad 
http://correo.yahoo.es

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


[Mono-dev] Workflow engine for Mono?

2005-11-17 Thread Alejandro Serrano
I have been looking the latest WinFX bits from Microsoft, and I found 
the Workflow Foundation very interesting.

Is there any workflow engine for Mono at this moment?

If not, I think it would be a good idea to start one, even though I 
think it's better not to base it in Microsoft implementation, but 
creating a new one from scratch. We could get a designer, and a workflow 
engine usable from both MS.NET and Mono. I would be interesting on 
opening such a project, if there is no one like it.


Any volunteers?

Alejandro


__ 
Renovamos el Correo Yahoo! 
Nuevos servicios, más seguridad 
http://correo.yahoo.es

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


[Mono-dev] Nemerle Language Forum Courses

2005-09-01 Thread Alejandro Serrano

Hi,
For every who doesn't know it, Nemerle (http://nemerle.org) is a 
object-oriented powerful language that targets the CLR (better the Mono 
platform), and also combines some functional constructs. Type inference 
(that means that you don't have to write type information every time, as 
in C#) is one of its main features, as well as macros, that allows to 
extend the language. We can say that Nemerle behaves as a superset of C#.
Well, Nemerle now has its own forums (http://nemerle.org/forum/) and 
there you can find information about a courses regarding the language 
that are going to be held (http://nemerle.org/forum/viewtopic.php?t=9). 
This courses range from totally beginners to experienced developers. We 
would like to start on 1st October. As you can see in the forum post, 
there will be a weekly content with exercises and interactive chats and 
maybe webcast to improve language knowledge. That's a good chance to 
introduce yourself in a mixed object-oriented and functional language, 
and of course, for free.


Hoping you will be interested on the language and on the course,
Thanks in advance,
Alejandro


__ 
Renovamos el Correo Yahoo! 
Nuevos servicios, más seguridad 
http://correo.yahoo.es

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


[Mono-devel-list] Operating System in C# Project

2005-05-20 Thread Alejandro Serrano
Hi,
Is anyone interested in starting a project for doing an operating system 
completely in managed code, à la Singularity that is being done in 
Microsoft?
I don't know much C or C++, but I'm very knowledgeable on C# and MSIL. 
So the idea would be to start implementing the CLR in a way that it 
executes completely by itself, then porting GTK# and something more to 
make it usable. A far long project!!

Thanks in advance,
Serras
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list