Re: [Mono-devel-list] Performance of Mono on Windows

2005-02-28 Thread Rafael Teixeira
inline


On Sat, 26 Feb 2005 05:54:58 -0700, Ritvik Mayank [EMAIL PROTECTED] wrote:
 Quite a few test are hanging under mbas  :
 under Test/errors and Test/tests and Test/rerrors
 (i have substituted vbc.exe  with mbas using a symbolic links.)

From SVN HEAD I'm getting an Exception in the compiler internals, but
nothing is hanging...

  make run-test shows the following error::
 
 [EMAIL PROTECTED] ~/src/mcs/mbas/Test/rerrors
  make run-test
 make run-test-local
 make[1]: Entering directory `/home/admin/src/mcs/mbas/Test/rerrors'
 vbc.exe /lib:../../../class/lib/default   -d:NET_1_1 -d:ONLY_1_1
 /debug+ /debug:
 full /target:library /out:rerrors_btest_default.dll
 /r:../../../class/lib/defaul
 t/rerrors.dll -r:../../../class/lib/default/nunit.framework.dll
 -r:../../../clas
 s/lib/default/nunit.core.dll
 -r:../../../class/lib/default/nunit.util.dll  @../.
 ./../build/deps/rerrors_btest_default.dll.response
 
 MonoBASIC: THIS IS AN ALPHA SOFTWARE.
 
 error BC2001: Source file '/lib' could not be found!!!
 error BC2001: Source file '/debug+' could not be found!!!
 error BC2001: Source file '../../../class/lib/default' could not be
 found!!!
 Compilation failed: 3 Error(s), 0 warnings
 make[1]: *** [rerrors_btest_default.dll] Error 1
 make[1]: Leaving directory `/home/admin/src/mcs/mbas/Test/rerrors'
 make: *** [run-test] Error 2
 
 any suggestion ?

I've corrected some things on mbas (see below)

 /lib is not supported by vbc but it supports /debug+

You are wrong vbc supports short forms of options /lib is the
short-form for /libpath. Now in SVN HEAD mbas also supports that short
form. Beware you need to be using the newest Mono.GetOptions from SVN
HEAD.

 Now SVN HEAD Mono.GetOptions allows for vbc style boolean options:
/debug+ or /debug-.  The newest mbas uses this new feature. Also it
uses the /help2 feature of Mono.GetOptions.

 With Regards,
 Ritvik

Thanks a lot Ritvik,

-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] Problems with UTF-8 Decoder

2005-02-28 Thread Rafael Teixeira
You are using outdated documentation for the utf-8 standard as of
unicode 3.x, we have more than 1 million codepoints (20 bits) and
utf-8 was extended to expand some of those in 5 or 6 bytes.

Get some updated documentation. 

Also from the top of my mind \uFEFF is the continuation prefix in
utf-16, that is what CLI strings contain, if so,  you trying to give
the encoder an invalid character...


HIH,

On Sun, 27 Feb 2005 13:07:58 +0200, Svetlana Zholkovsky
[EMAIL PROTECTED] wrote:
 Hi, All!
 
 I am using a UTF-8 Encoding to encode/decode the following unicode strings:
 
 \u4f00\u302a\ud800\udc00\u4f01,
 \uFEFF,
 \u0041\u2262\u0391\u002e,
 \ud55c\uad6d\uc5b4,
 \u65e5\u672c\u8a9e,
 \ufeff\u233b4
 
 The encoding works fine and code looks like exact implementation of RFC
 3629 spec, but the decoder
 does not return original characters.
 The character \uFEFF (bytes FE BB BF) does not returned
 at all.
 
 I've checked the UTF8Encoding.cs - and I have admit that in opposite to
 encoder - decoder does some strange logic which tries to decode
 sequences of 5 or 6 bytes (the standard defines only 1 - 4 bytes
 sequences for the valid Unicode characters)
 
 So, before I'll try to fix the problem - may be someone can clarify me
 the current UTF-8 decoder implementation logic?
 
 I've opened a bug http://bugzilla.ximian.com/show_bug.cgi?id=73086 on
 UTF-8.
 
 Thanks,
 Svetlana.
 
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-devel-list] Re: [mono-vb] BC29999 error

2005-03-02 Thread Rafael Teixeira
Well it seems like mbas is hanging, and so xsp isn't finding the
compiled dll. I'm short of easy remedies just now. Please file a bug
report at our bugzilla (http://bugzilla.ximian.com/) at the product
Mono:Compilers, component Basic.

:(


On Wed, 2 Mar 2005 13:05:18 -0600, Chesko, Ron [EMAIL PROTECTED] wrote:
 Okay, made the change and I get this now and the dll name changes each
 time I reload.
 
 Cannot find '58860.dll'.
 Description: Error processing request.
 Error Message: HTTP 404. Cannot find '58860.dll'.
 
 BTW, thanks for all of the help so far.
 
 Ron
 
  -Original Message-
  From: Rafael Teixeira [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, March 02, 2005 12:58 PM
  To: Chesko, Ron
  Cc: mono-vb@lists.ximian.com; mono-devel-list
  Subject: Re: [mono-vb] BC2 error
 
  It is a known problem: Currently mbas isn't properly dealing
  with the default property for a class, so you need to be explicit.
 
  As a workaround it may (I can't test just now)  work if you
  change the code to:
 
   Line 67: if Request.QueryString.Item( thanks
  ) = yes then
 
  HIH,
 
  On Wed, 2 Mar 2005 12:35:26 -0600, Chesko, Ron
  [EMAIL PROTECTED] wrote:
   Alrighty.
  
   Other pages work (with the language line). My original problem page
   gives a new error with line 67 highlighted.
  
   Thanks,
   Ron
  
   Error message: /tmp/95963.vb(67,32) : error BC1501: No overload for
   method `QueryString' takes `1' arguments
  
   File name: /var/www/html/sites/NWB/contactus.aspx
  
   Source File: /tmp/95963.vb
  
   Line 1: '
  
  --
   --
   --
   Line 2: '  autogenerated
   Line 3: '  This code was generated by a tool.
   Line 4: '  Mono Runtime Version: 1.1.4322.573
   Line 5: '
   Line 6: '  Changes to this file may cause incorrect behavior and
   will be lost if
   Line 7: '  the code is regenerated.
   Line 8: '  /autogenerated
   Line 9: '
  
  --
   --
   --
   Line 10:
   Line 11: Option Explicit Off
   Line 12: Option Strict On
   Line 13:
   Line 14: Imports Microsoft.VisualBasic Line 15: Imports System Line
   16: Imports System.Collections Line 17: Imports
   System.Collections.Specialized Line 18: Imports
  System.Configuration
   Line 19: Imports System.Text Line 20: Imports
   System.Text.RegularExpressions Line 21: Imports System.Web Line 22:
   Imports System.Web.Caching Line 23: Imports
  System.Web.Security Line
   24: Imports System.Web.SessionState Line 25: Imports System.Web.UI
   Line 26: Imports System.Web.UI.WebControls Line 27: Imports
   System.Web.UI.HtmlControls Line 28:
   Line 29: Namespace ASP
   Line 30: Public Class contactus_aspx
   Line 31: Inherits System.Web.UI.Page
   Line 32: Implements
   System.Web.SessionState.IRequiresSessionState
   Line 33:
   Line 34: Private Shared __intialized As Boolean = False
   Line 35:
   Line 36: Private Shared __autoHandlers As Integer
   Line 37:
   Line 38: Public Sub New()
   Line 39: If ((ASP.contactus_aspx.__intialized =
  False)) Then
   Line 40: ASP.contactus_aspx.__intialized = True
   Line 41: End If
   Line 42: End Sub
   Line 43:
   Line 44: Protected Overrides Property AutoHandlers
  As Integer
   Line 45: Get
   Line 46: Return ASP.contactus_aspx.__autoHandlers
   Line 47: End Get
   Line 48: Set (Value As Integer)
   Line 49: ASP.contactus_aspx.__autoHandlers = Value
   Line 50: End Set
   Line 51: End Property
   Line 52:
   Line 53: Protected ReadOnly Property ApplicationInstance As
   System.Web.HttpApplication
   Line 54: Get
   Line 55: Return
  CType(Me.Context.ApplicationInstance,
   System.Web.HttpApplication)
   Line 56: End Get
   Line 57: End Property
   Line 58:
   Line 59: Public Overrides ReadOnly Property
   TemplateSourceDirectory As String
   Line 60: Get
   Line 61: Return /NWB
   Line 62: End Get
   Line 63: End Property
   Line 64:
   Line 65: Private Sub __RenderTree(__output As
   System.Web.UI.HtmlTextWriter, parameterContainer As
   System.Web.UI.Control)
   Line 66: __output.Write(h2 class=HeadingContact
   Us/h2Microsoft.VisualBasic.ChrW(10))
   Line 67: if Request.QueryString( thanks ) = yes then
   Line 68:'form has been sucessfully submitted
   Line 69:'show a thank you message
   Line 70:response.write (pbThank You For Contacting
   Us/b/ppIf your input requires us to contact you and you have
   provided us with your contact information we will be in
  touch with you
   soon./p)
   Line 71: else
   Line 72:
  
  __output.Write(Microsoft.VisualBasic.ChrW(10

Re: [Mono-devel-list] Leak in System.Timers.Timer?

2005-03-11 Thread Rafael Teixeira
Our current gc, is conservative and not very aggressive at freeing
resources, you may be creating your objects way too fast...

Can't you reuse the timer? Seems to be a wiser solution reuing objects
as even a good gc may spend precious processing time if it has to
collect zillions of short-lived objects...

Just my 2 cents, :)


On Thu, 10 Mar 2005 15:07:55 -0500, Brian Kroeker [EMAIL PROTECTED] wrote:
  
  
 I haven't installed mono on windows but using the MS Framework I don't see
 this behavior on windows. Also I don't believe this could be a
 lapsed-listener, since I'm subscribing to an event in the instance of timer
 - when all references to timer are gone shouldn't the garbage collector get
 rid of the object including its event and list of delegates? I didn't think
 the delegates stuck around after the event went away. 
   
 Brian 
  
  
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, March 10, 2005 12:03 PM
 To: mono-devel-list@lists.ximian.com
 Subject: Re: [Mono-devel-list] Leak in System.Timers.Timer?
 
  
 Oh, wait I see you are passing the same one by ref and setting it to null.
 Do you get different behaviour under windows? 
 
 Joe Audette [EMAIL PROTECTED] wrote: 
  
 Looks to me like your creating timers in an infinite loop wich would of
 course continue to consume resources 
   
  while(true) 
 { 
 InitTimeout(ref timeout); 
 System.Threading.Thread.Sleep(10); 
 } 
   
 true will always be true so you are spinning off a lot of timers right? Or
 am I missing something? 
   
 Regards, 
   
 Joe
 
 
 Brian Kroeker [EMAIL PROTECTED] wrote:
  
  
 
 I'm seeing what looks like a memory leak somewhere in System.Timers.Timer.
 I'm using mono 1.1.4 on a linux system. The code I used to reproduce the
 problem is: 
 
 -- 
 using System; 
  
 
 namespace TimerTest 
 { 
 public class TimerTest 
 { 
 static void Main(string[] args) 
 { 
 TimerTest test = new TimerTest(); 
 
 test.Run(); 
 } 
 
 public TimerTest() 
 { 
 } 
 
 public void Run() 
 { 
 System.Timers.Timer timeout = null; 
 
 while(true) 
 { 
 InitTimeout(ref timeout); 
 System.Threading.Thread.Sleep(10); 
 } 
 } 
 
 private void InitTimeout(ref System.Timers.Timer timer) 
 { 
 if(timer != null) 
 { 
 timer.Stop(); 
 timer = null; 
 } 
 
 timer = new System.Timers.Timer(); 
 timer.AutoReset = false; 
 timer.Elapsed += new
 System.Timers.ElapsedEventHandler(OnTimeout); 
 timer.Interval = 3; 
 timer.Start(); 
 } 
 
 private void OnTimeout(object source, System.Timers.ElapsedEventArgs
 e) 
 { 
 } 
 } 
 } 
 -- 
 
 Does anyone else see this problem? Am I missing something here? I see the
 memory usage on my system increase fairly quickly. 
 
 Thanks, 
 Brian 
 
 [EMAIL PROTECTED]
 http://www.joeaudette.com
 http://www.mojoportal.com
 
 
 [EMAIL PROTECTED]
 http://www.joeaudette.com
 http://www.mojoportal.com 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] Patch for SqlConnection

2005-03-11 Thread Rafael Teixeira
Hi Suresh,

A programmer may forget to close a connection before it is collected.
Surely in the server-side there are resouces that should be freed.
That is why SQLConnection DOES have unmanaged resources to free. If
our implementation isn't doing so in the finalizer/dispose it is in
error, period.

HIH,

On Fri, 11 Mar 2005 12:56:05 +0530, Sureshkumar T
[EMAIL PROTECTED] wrote:
  From: Gonzalo Paniagua Javier [EMAIL PROTECTED]
  To: Mono Development mono-devel-list@lists.ximian.com
  Subject: [Mono-devel-list] Patch for SqlConnection
  Date: Fri, 11 Mar 2005 00:50:59 -0500
 
  Hi.
 
  Attached there's a small patch that adds a finalizer to SqlConnection
  and moves the 'disposed = true' into the finally in Dispose(bool).
 
 SqlConnection does not have any unmanaged resources. Hence, IMHO, it is
 not necessary to have finalizer method. We can avoid an overhead to GC.
 
 I donot see the reason to mark disposed to true in case any exception
 occurs while closing the connection.
 
 -suresh.
 
 
  Any objections?
 
  -Gonzalo
 
 
  --=-yYoFVNPF2KxporljqjIH
  Content-Disposition: attachment; filename=patchety.patch
  Content-Type: text/x-patch; name=patchety.patch; charset=UTF-8
  Content-Transfer-Encoding: 7bit
 
  Index: SqlConnection.cs
  ===
  --- SqlConnection.cs  (revision 41656)
  +++ SqlConnection.cs  (working copy)
  @@ -411,11 +411,10 @@
   dataSource = ; // 
  default dataSource
   ConnectionString = null;
   }
  +} finally {
   disposed = true;
  -} finally {
   base.Dispose (disposing);
   }
  -
}
}
 
  @@ -455,6 +454,11 @@
GC.SuppressFinalize (this);
}
 
  + ~SqlConnection ()
  + {
  + Dispose (false);
  + }
  +
public
   #if NET_2_0
override
 
  --=-yYoFVNPF2KxporljqjIH--
 
  ___
  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
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] Cross Platform .NET Architecture

2005-03-14 Thread Rafael Teixeira
There's not a single answer.

Sometimes we just let the problem in 'nativeland',  either by
duplicating some windows native library outside windows (libgdiplus.so
is our version of gdiplus.dll for use in System.Drawing), or having
multiple platform-dependent versions (GTK for X and for Windows) just
wrapped needing at most some p/invoke remapping in the dll config file
(mono specific extension).

Sometimes  we have some (kept to the possible minimun) run time
checking for platform to choose code paths (p/invokes are resolved
only at first-call).

And sometimes (mainly in the makefiles) we use some defines or
specific targets/rules, so that some things aren't built or are
differently built according to the target platform.

One of the trickiest parts in developing for multiple platforms are
the mass of unit tests, and we have thouroughly used Nunit's support
for categories to be able to keep the situation manageable.

Well I may not give any better hope, but I hope it helps.

As for your Idea with attributes, we just have the p/invoke remapping,
but nothing with a conditional behaviour...

Fun, :)

On Mon, 14 Mar 2005 11:16:42 -0800, JD Conley [EMAIL PROTECTED] wrote:
 I included this question as a side-note in another thread but I think it
 deserves its own.
 
 Is there any documentation on how Mono sets up its class library
 projects for cross platform .NET development?  It seems like there would
 be some interesting ways you could do this with attributes rather than
 having IF DEF's everywhere.  Is there a particular subsystem I could
 look at for a good example of how to do this in my own projects?  In an
 ideal world we wouldn't have to write any platform specific code, but
 this probably isn't going to happen in my project any time soon.
 
 Any guidance would be appreciated.
 
 JD Conley
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] asp.net usercontrols and WriteFile features

2005-03-21 Thread Rafael Teixeira
More importantly, these divergences are documented (in msdn, etc.)?
Because they may not hold true for ASP.NET 2.0, for instance, if they
are just  some undocumented implementation detail.

I would not build anything upon such a shaky base...

HIH,


On Mon, 21 Mar 2005 09:45:42 +0100 (CET), charlie
[EMAIL PROTECTED] wrote:
 Hi,
 
 the html files are only snippets. On the 'static' side of my page I use
 apache severside includes to pull in standard meta tags, menu and
 footer(all pages thus have the same look), and wanted to do the same
 with the mono pages.
 
 I stumbled over the WriteFile and in vs.net it opened the file relative
 to the application directory. One override of the Render method and the
 job was done. (No finding out what the application directory is,
 changing directories, openeing and reading in the file, ...)
 
 Unfortunatey mono diverges from the ms implementation here, both in the
 assumed path and the excution time of the render method, which means the
 I will most likely have to go the way of the literal control to be able
 to reuse my html snippets.
 
 Are these divergences to be considered bugs. should I file reports for
 them?
 
 regards
   charlie
 
 On Sun, 20 Mar 2005, Joe Audette wrote:
 
  Date: Sun, 20 Mar 2005 13:21:53 -0800 (PST)
  From: Joe Audette [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: Re: [Mono-devel-list] asp.net usercontrols and WriteFile features
 
  I could be wrong on this but I have always thought
  that Response.WriteFile is for writing binary streams
  to the response like to support file downloads and
  such. I would not have thought it would be used in the
  Render method of a user control.
 
  If I was retrieving content from a text file to write
  to the response my first inclination would be to open
  the file server side and then write the contents using
  Response.Write or to load the content into a Literal
  then load that into the user control or some container
  control using this.Controls.Add instead of overriding
  the render method.
 
  The file you are loading is labelled .html, if you
  have  the full set of html tags, head, body etc in
  that file you're likely to have problems putting that
  in a user control because those tags would already be
  part of the containing page.
 
  Hope any of that helps,
 
  Joe
 
 
  --- charlie [EMAIL PROTECTED] wrote:
   Hi Guys,
  
   i have been doing a bit of asp.net programming and
   have run into a few
   features :-). here a code snippet of what I am
   doing:
  
   Menu.ascx
 public class Menu : System.Web.UI.UserControl
 {
  
   private void Page_Load(object sender,
   System.EventArgs e)
   {
   }
   protected override void Render(HtmlTextWriter
   output)
   {
   #if __MonoCS__
  
  
  Response.WriteFile(/home/[absolutepath]/html/Menu.html);
   #else
 Response.WriteFile(../html/Menu.html);
   #endif
   }
  
   Prod.aspx
 body
   gutschn:Menu id=Menu1
   runat=server/gutschn:Menu
  
  
   - Response.WriteFile under MS works relative to the
   as?x file that
   contains it, but apparently not so in mono. Thus
   under IIS including
   this webcontrol where both aspx and ascx file are in
   cgi-bin, pulls in
   the the afore mentioned html file from the parallel
   html directory. I
   was able to counter with with #if, not nice, but it
   works
  
   - UserControl.Render under mono executes to a
   different time than under
   IIS. In IIS the 'included' html gets written where
   the control is,
   whereas under mono the html gets written before the
   output of the aspx
   file. Thus I have my meta-tags, menu and footer and
   then comes the
   !DOCTYPE and the rest of the page :-(
  
  
   Has anyone had similar experiences ??
  
   current system is suse 9.2, apache2 and the 1.1.4 /
   1.0.6 mix that one
   gets off the mono-project homepage
   rpm -qa | grep mono
   mono-data-1.1.4-1.ximian.10.1
   mono-winforms-1.1.4-1.ximian.10.1
   mono-basic-1.1.4-1.ximian.10.1
   mono-data-oracle-1.1.4-1.ximian.10.1
   mono-data-sqlite-1.1.4-1.ximian.10.1
   mono-ikvm-1.1.4-1.ximian.10.1
   mod_mono-1.0.6-1.ximian.9.1(now 1.0.7)
   mono-devel-1.1.4-1.ximian.10.1
   mono-core-1.1.4-1.ximian.10.1
   mono-web-1.1.4-1.ximian.10.1
   mono-extras-1.1.4-1.ximian.10.1
   mono-data-postgresql-1.1.4-1.ximian.10.1
   mono-data-sybase-1.1.4-1.ximian.10.1
   mono-locale-extras-1.1.4-1.ximian.10.1
   mono-complete-1.1.4-1.ximian.10.1
   mono-jscript-1.1.4-1.ximian.10.1
  
   mod_mono.so has since been replaced with a svn 1.0.7
   compile from source
   to take advantage of multiple named applications
   (works like a charm
   *g*, multiple virtual servers with their own
   applications)
  
   regards
 charlie
   ___
   Mono-devel-list mailing list
   Mono-devel-list@lists.ximian.com
  
  http://lists.ximian.com/mailman/listinfo/mono-devel-list
  
 
  [EMAIL PROTECTED]
  http://www.joeaudette.com
  

[Mono-devel-list] Some information in the problems with FileSystemWatcher on FC3 (gamin-related)

2005-03-22 Thread Rafael Teixeira
First, the scenario: Running Monodevelop from HEAD (with Mono from
HEAD), in my newly upgraded FC3, I started to get a crash when
creating a new project in the solution.

After some hours googling and looking at sources, I've found that FC3
uses now a package called gamin (I'm using gamin-0.25) that replaces
FAM. It uses a per session daemon, instead of system-wide one like
FAM, to make things more secure. It also emulates the libfam API/ABI.
Creator is Daniel Veillard from RedHat.

Turning gamin's debugging support on (export GAM_DEBUG=), I got some
more detailed information: the problem was ocurring because it was
rejecting a request-number while trying to call FAMCancelMonitor.

I made a few changes in my local copy of System/System.IO/FAMWatcher
to have a cleaner more easily debuggable managed code, and added two
debugging messages.  I wanted to assess if FAMWatcher was doing
something wrong, but it seems that the culprit is gamin.

See the transcript:

[EMAIL PROTECTED] System]$ monodevelop
Entering VB.NET parser
Reading 
/home/rafael/.config/MonoDevelop/CodeCompletionData/mscorlib_1.0.5000.0_b77a5c561934e089.pidb
Creating DefaultWorkbench
looking for type: got text/plain
WARNING Could not find stock gtk-open
Started: FAMData: /home/rafael/projects/nexus/cliente/nexus/* Request #1
Stopping: FAMData: /home/rafael/projects/nexus/cliente/nexus/* Request #1
Started: FAMData: /home/rafael/projects/nexus/cliente/nexus/* Request #2
Started: FAMData: /home/rafael/projects/nexus/cliente/nexus/teste/* Request #3
Stopping: FAMData: /home/rafael/projects/nexus/cliente/nexus/teste/* Request #3
Started: FAMData: /home/rafael/projects/nexus/cliente/nexus/teste/* Request #4
Started: FAMData:
/home/rafael/Desktop/Nexus/cliente/customizadordenotas/* Request #5
Stopping: FAMData:
/home/rafael/Desktop/Nexus/cliente/customizadordenotas/* Request #5
Started: FAMData:
/home/rafael/Desktop/Nexus/cliente/customizadordenotas/* Request #6
Reading /home/rafael/projects/nexus/cliente/nexus/Nexus.pidb
Reading /home/rafael/projects/nexus/cliente/nexus/teste/Teste.Nexus.pidb
Reading 
/home/rafael/.config/MonoDevelop/CodeCompletionData/nunit.framework_2.2.0.0_96d09a1eb7f44a77.pidb
Reading 
/home/rafael/.config/MonoDevelop/CodeCompletionData/System_1.0.5000.0_b77a5c561934e089.pidb
Reading 
/home/rafael/.config/MonoDevelop/CodeCompletionData/System.Xml_1.0.5000.0_b77a5c561934e089.pidb
Reading 
/home/rafael/.config/MonoDevelop/CodeCompletionData/gtk-sharp_2.0.0.0_35e10195dab3c99f.pidb
Reading 
/home/rafael/.config/MonoDevelop/CodeCompletionData/glib-sharp_2.0.0.0_35e10195dab3c99f.pidb
Reading 
/home/rafael/.config/MonoDevelop/CodeCompletionData/gdk-sharp_2.0.0.0_35e10195dab3c99f.pidb
Reading 
/home/rafael/.config/MonoDevelop/CodeCompletionData/pango-sharp_2.0.0.0_35e10195dab3c99f.pidb
Reading 
/home/rafael/.config/MonoDevelop/CodeCompletionData/atk-sharp_2.0.0.0_35e10195dab3c99f.pidb
Reading 
/home/rafael/.config/MonoDevelop/CodeCompletionData/glade-sharp_2.0.0.0_35e10195dab3c99f.pidb
WARNING Could not find stock gtk-save
Stopping: FAMData: /home/rafael/projects/nexus/cliente/nexus/* Request #2
Started: FAMData: /home/rafael/projects/nexus/cliente/nexus/* Request #7
Stopping: FAMData: /home/rafael/projects/nexus/cliente/nexus/teste/* Request #4
Started: FAMData: /home/rafael/projects/nexus/cliente/nexus/teste/* Request #8
Stopping: FAMData:
/home/rafael/Desktop/Nexus/cliente/customizadordenotas/* Request #6
Started: FAMData:
/home/rafael/Desktop/Nexus/cliente/customizadordenotas/* Request #9
Stopping: FAMData: /home/rafael/projects/nexus/cliente/nexus/* Request #7
Started: FAMData: /home/rafael/projects/nexus/cliente/nexus/* Request #10
Stopping: FAMData: /home/rafael/projects/nexus/cliente/nexus/teste/* Request #8
Started: FAMData: /home/rafael/projects/nexus/cliente/nexus/teste/* Request #11
Stopping: FAMData:
/home/rafael/Desktop/Nexus/cliente/customizadordenotas/* Request #9
Started: FAMData:
/home/rafael/Desktop/Nexus/cliente/customizadordenotas/* Request #12
Started: FAMData:
/home/rafael/projects/nexus/cliente/nexus/teste/Teste_Pessoa.cs
Request #13
Started: FAMData: /home/rafael/projects/nexus/cliente/nexus/Pessoa.cs
Request #14
Started: FAMData:
/home/rafael/projects/nexus/cliente/nexus/teste/Teste_Empresa.cs
Request #15
Started: FAMData: /home/rafael/projects/nexus/cliente/nexus/Empresa.cs
Request #16
Reading 
/home/rafael/.config/MonoDevelop/CodeCompletionData/System_1.0.5000.0_b77a5c561934e089.pidb
*** Parsing assembly: System.dll
Writing 
/home/rafael/.config/MonoDevelop/CodeCompletionData/System_1.0.5000.0_b77a5c561934e089.pidb
Reading 
/home/rafael/.config/MonoDevelop/CodeCompletionData/System_1.0.5000.0_b77a5c561934e089.pidb
end from FAM server connection
end from FAM server connection
Failed to write bytes to socket 83
end from FAM server connection

** ERROR **: file gam_tree.c: line 146 (gam_tree_remove): assertion
failed: (g_node_n_children(node-node) == 0)
aborting...
end from FAM server connection
end from FAM 

Re: [Mono-devel-list] Introducing GtkSpell#

2005-03-24 Thread Rafael Teixeira
Thanks Zac, 

My first patch

it does this:

24-03-2005 Rafael Teixeira [EMAIL PROTECTED]
sample/TestGtkSpell.cs
-- added a delete event handler to end the application when
closing the window
-- now accepts an optional command line argument to specify locale.
   Ex: mono TestGtkSpell.exe pt-br, defaults to en-us as before

may I commit.

Fun,

On Thu, 24 Mar 2005 11:41:37 -0600, Zac Bowling [EMAIL PROTECTED] wrote:
 I already commited to the svn last night :-) Its under
 sources/trunk/gtkspell-sharp
 
 I've updated it and regenerated with gapi so the api is different now.
 (Sorry, but I messed up on a few things before and it was a prerelease).
 I fixed the makefile so it didn't staticly call aclocal-1.7 and
 automake-1.7, and I fixed the casing of the namespace and updated a few
 things in the sample. I have to add code to allow it to disconnect
 destruction of the textview. You can do it on your own by saving the
 variable for the SpellCheck object or calling the function to return the
 instance of SpellCheck attached and call detach manually. I should have
 a fix for that soon. :-)
 
 If you have any patches, email the list and I will apply them (since I'm
 maintaining a version since its sort of beta right now) unless its a new
 sample then if you have SVN access then feel free to add it the sample
 directory (don't forget to update the Makefile, hehe). You can also tell
 me any issues in #mono on irc.gimp.org if you catch me (user zbowling).
 Later when its stable, we can pretty much go by house rules.
 
 If anyone is interested I'll start making a wrapper for libgnomeprint
 (not libgnomeprintUI). libgnomeprint works on Windows on Linux but
 libgnomeprintUI doesn't (bonobo/orbit dependencies). We can also work on
 a C# replacement in then SVN for the printing dialogs. I only want to do
 that one if I find interest because right now I'm using it side my app
 and I'm to lazy to rip it out without interest. Its really nice for
 cross platform printing. :-)
 
 Anyways, have fun!
 Zac
 
 MAY THE CODE BE WITH YOU!
 
 On Thu, 2005-03-24 at 11:54 -0300, Rafael Teixeira wrote:
  Can I or someone of a higher cast, create a gtkspell-sharp module in
  the SVN repo to house it? From there we can help to fix the few issues
  Zac hints about...
 
  Also Zac, can you list specifically what the issues are?
 
  :)
 
 
  On Wed, 23 Mar 2005 22:57:51 +0100, Martin Willemoes Hansen
  [EMAIL PROTECTED] wrote:
   ons, 23 03 2005 kl. 15:17 -0600, skrev Zac Bowling:
If anyone has seen gaim or tomboy knows about GtkSpell. It basically
creates the Word, or Evolution type marks on your misspelled words, and
with a quick right mouse click you can fix your mistake. It only takes
one line of code and you have spell check on any of your TextViews :-)
   
http://www.polystimulus.com/gtkspell-sharp.tar.bz2
  
   Cool, it would probably be nice to have in gnome or mono cvs.
  
   Happy hacking!
   --
   Martin Willemoes Hansen
  
   ___
   Mono-devel-list mailing list
   Mono-devel-list@lists.ximian.com
   http://lists.ximian.com/mailman/listinfo/mono-devel-list
  
 
 
 
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
Index: sample/TestGtkSpell.cs
===
--- sample/TestGtkSpell.cs	(revision 42226)
+++ sample/TestGtkSpell.cs	(working copy)
@@ -4,7 +4,7 @@
 
 public class GtkHelloWorld {
  
-  public static void Main() {
+  public static void Main(string[] args) {
 Application.Init();
 
 //Create the Window
@@ -14,8 +14,13 @@
 //Create a TextView 
 TextView myTextView = new TextView();
 
+SpellCheck mySpellCheck;
+
 //Bind GtkSpell to our textview
-SpellCheck mySpellCheck = new SpellCheck(myTextView, en-us);
+if (args.Length  0)
+	mySpellCheck = new SpellCheck(myTextView, args[0]);
+	else
+	mySpellCheck = new SpellCheck(myTextView, en-us);
 
 //spellCheck.Detach();
 //spellCheck.();
@@ -26,6 +31,13 @@
 //Show Everything 
 myWin.ShowAll();
 
+ 	myWin.DeleteEvent += new DeleteEventHandler(delete);
+
 Application.Run();   
}
+   
+   static void delete(object o, DeleteEventArgs args)
+   {
+Application.Quit();
+   }
 }
Index: ChangeLog
===
--- ChangeLog	(revision 42226)
+++ ChangeLog	(working copy)
@@ -0,0 +1,5 @@
+24-03-2005 Rafael Teixeira [EMAIL PROTECTED]
+	sample/TestGtkSpell.cs
+	-- added a delete event handler to end the application when closing the window
+	-- now accepts an optional command line argument to specify locale. 
+	   Ex: mono TestGtkSpell.exe pt-br, defaults to en-us as before


[Mono-devel-list] Just something the lazy me cooked to help committing to svn

2005-03-24 Thread Rafael Teixeira
I've put this alias definition in ~/.bashrc

alias commit=(svn diff ChangeLog | grep ^+[^+] | colrm 1 1  log) 
cat log  svn commit -F log  rm log

With it I just edit the changelog and call it when ready to commit the work. 
A good thing is that errors in comunication or collisions stop the
process without further ado.

Just a small gotcha, diff may present lines out-of-order for
multiple sucessive entries in the same day by the same person, but
there is no loss of information unless you start to yank things out of
the ChangeLog.

Enjoy,


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] Enums in mono c api

2005-03-29 Thread Rafael Teixeira
The enum definition may alter it's base type from the default int (32
bit) to a smaller/bigger integer. I think the marshalling 'magic',
sees this and tries to accomodate to the calling convention (in some
conventions 8-bit bytes are pushed as 32 bit integer to keep the stack
aligned).

enums are value types and as such are always passed by-value, unless
the ref or out modifier is applied to the parameter definition.

I don't think you can easily identify sizes form the c side as it
would be too late, you need to confirm the enum base time from
inspecting the sources or the defining assembly with monodis/monop,
and code correctly the c part.

HIH,


On Tue, 29 Mar 2005 06:27:19 +0200, Joe Ante [EMAIL PROTECTED] wrote:
 Hi,
 
 I am calling a c function using mono's internal call. In the function call i
 am passing a C# enum into the c function.
 
 How do i determine the size of the enum in the c code? It seems to be passed
 by value and accepting it as a 4 byte integer seems to work but is that
 always correct?
 
 Joachim Ante
 www.otee.dk
 
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] Enums in mono c api

2005-03-31 Thread Rafael Teixeira
In your example it will always be an int (32bit) because that is the
default basetype for all enums. To have it as a long, for instance,
you would need to explicitly define it with the proper basetype,
giving code like this:

enum FooEnum :  long { A = 0, B, C, D }

See 
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csref/html/vcreftheenumerationtypes.asp
for details.

HIH,

On Thu, 31 Mar 2005 15:57:34 +0200, Joe Ante [EMAIL PROTECTED] wrote:
  You need to know the type of the enum: ususally it's a int32, but
  a different type can be specified. Since you must control the
  assembly the icall is defined in, you should also know what type
  the enum has.
 Ok so in C# when i write:
 
 enum FooEnum { A = 0, B, C, D }
 
 And then i have a icall which receives FooEnum, under what circumstances can
 FooEnum be passed as a non- int32?
 
 I have control over the C# and C++ code that contains the dll and icalls.
 So how do i make sure they never become non-int32?
 
 Joachim
 
 
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] Implementing InstallUtil.exe

2005-03-31 Thread Rafael Teixeira
If you talking about a similar utility to what is described in
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/html/cpconinstallerutilityinstallutilexe.asp,
AFAIK nobody is working, you can implement it, but beware that maybe
lots of code is missing in the System.Configuration.Install Namespace
as it mostly only stubbed.

Have Fun,

:)

On Thu, 31 Mar 2005 12:17:42 +0530, Muthu Kannan [EMAIL PROTECTED] wrote:
 Hi,
 
 I wish to implement InstallUtil.exe tool for Mono.  Is there
 anyone working on the same already?  If there is no one working on it,
 I shall start my work on it.
 
 Thanks,
 Muthu Kannan
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] TARGET_JVM Patch for MSXslScriptManager.cs

2005-03-31 Thread Rafael Teixeira
For the maintainer of that code:

Class System.Guid has an overload of ToString that receives a format
specifier, that I think should be preferred, so instead of:

string suffix = Guid.NewGuid ().ToString ().Replace (-, String.Empty);

it should be coded as:

string suffix = Guid.NewGuid ().ToString (N);

Have Fun,

On Thu, 31 Mar 2005 19:19:35 +0200, Andrew Skiba [EMAIL PROTECTED] wrote:
 Hello,
 
 I'm starting to send patches for Mainsoft Visual MainWin for J2EE
 product conditional compilation code. These patches will not affect
 compilation results as long as one does not define TARGET_JVM.
 
 ChangeLog:
 2004-03-31  Andrew Skiba[EMAIL PROTECTED]
 
 * MSXslScriptManager.cs : on-the-fly compilation is not supported in
 Visual MainWin (TARGET_JVM)
 
 
 Index: MSXslScriptManager.cs
 ===
 --- Mono.Xml.Xsl/MSXslScriptManager.cs  (revision 42433)
 +++ Mono.Xml.Xsl/MSXslScriptManager.cs  (working copy)
 @@ -127,6 +127,9 @@
 
 public object Compile (XPathNavigator node)
 {
 +#if TARGET_JVM
 +   throw new NotImplementedException ();
 +#else
 string suffix = Guid.NewGuid ().ToString 
 ().Replace (-, String.Empty);
 switch (this.language) {
 case ScriptingLanguage.CSharp:
 @@ -138,6 +141,7 @@
 default:
 return null;
 }
 +#endif
 }
 }
 }
 
 
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] Mono's support for unsafe code

2005-03-31 Thread Rafael Teixeira
I think it's currently OK. We had some real trouble some time ago, in
mcs because there wasn't support in the class library to generate code
for fixed, so we now have specific extension to make that happen.

And yes, while unsafe may mean faster code it also mean beware of what
your pointers point to. Keep them to a minimum and think of all
security restrictions that will apply in MS implementation and in ours
when (CAS) security is activated.

Fun,


On Thu, 31 Mar 2005 18:40:51 +0100, Alex Chudnovsky
[EMAIL PROTECTED] wrote:
 
 I was just wondering what is the degree of support for unsafe code in
 Mono?
 
 I had a few modules with unsafe code compiled in VS 2003 and they seem
 to run okay,
 but I have not found much about whether this apparent support for
 unsafe code is 100% complete,
 or mostly working etc?
 
 My primary interest is using pointers to read/modify data directly in
 heap using fixed command
 to make sure GC won't move data. My experience shows that unsafe codes
 has some very nice performance
 gains that are very important for my application, should I be wary of
 using that code in Mono?
 
 regards,
 
 Alex
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] Re: Mono-devel-list digest, Vol 1 #1574 - 16 msgs

2005-03-31 Thread Rafael Teixeira
The problem is Mono (especially libgc) does use threads. So you have
the same problem, as soon as the GC starts collecting objects... Or
are you stopping the GC and letting your objects pile up in your code?

HIH,


On Thu, 31 Mar 2005 21:47:31 +0200, Michael Rasmussen [EMAIL PROTECTED] wrote:
  Message: 1
  Subject: Re: [Mono-devel-list] Re: Mono-devel-list digest, Vol 1 #1571 - 11
msgs
  From: Dick Porter [EMAIL PROTECTED]
  To: mono-devel-list@lists.ximian.com
  Date: Thu, 31 Mar 2005 14:32:51 +0100
 
  On Thu, 2005-03-31 at 00:37 +0200, Michael Rasmussen wrote:
  Did you read the quote from the Butenhof book in that bug entry?
 
 Yes, but this does not affect my solution. I do not you threads, only a
 simple process fork. Fork() and pthread_create are two entirely
 different things technologically speaking.
 
 Hilsen/Regards
 Michael Rasmussen
 
 Get my public GnuPG keys:
 michael  rasmussen  cc
 http://keyserver.veridis.com:11371/pks/lookup?op=getsearch=0xD3C9A00E
 mir  datanom  net
 http://keyserver.veridis.com:11371/pks/lookup?op=getsearch=0xE501F51C
 mir  miras  org
 http://keyserver.veridis.com:11371/pks/lookup?op=getsearch=0xE3E80917
 --
 Let me take you a button-hole lower.
 -- William Shakespeare, Love's Labour's Lost
 
 
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] Re: Mono-devel-list digest, Vol 1 #1576 - 3 msgs

2005-04-04 Thread Rafael Teixeira
On Apr 3, 2005 12:49 AM, Michael Rasmussen [EMAIL PROTECTED] wrote:
 lør, 02 04 2005 kl. 11:05 -0500, skrev Jonathan Pryor:
...
 How does it work on windows when you install an application running as a
 service? What part of the winapi is used? (Sorry for asking this if it
 is a trivial question. By knowledge of windows is very sparse)

Windows has a service manager that start services in a headless way,
with the SYSTEM user account. AFAIK, this service talks to services
(to pause/stop/restart) via pipes.

In Linux, we have init scripts and those can talk to running servers
via signals, but there's no central service manager and we have only
some conventions not a rigid API for a service to follow.

In Windows this API  extends beyond controlling services to
performance monitoring and logging, all of this has to be duplicated
in Linux or inside Mono for Mono to really host .NET Services in a
more natural way...

I think costs to implement all that are steep and the benefits are
harder to evaluate as significant. But if more people express the
need, and better, contribute code, things can surely advance.

HIH,


 
 
 public static void Install()
 {
 ServiceInstaller si = new ServiceInstaller();
 ServiceProcessInstaller spi = new
 ServiceProcessInstaller();
 spi.Account = ServiceAccount.LocalSystem;
 si.Parent = spi;
 si.DisplayName = DISPLAY_NAME;
 si.ServiceName = SERVICE_NAME;
 si.StartType = ServiceStartMode.Automatic;
 
 si.Context = new
 System.Configuration.Install.InstallContext(install.log, null);
 
 string
 asmpath=Path.Combine(AppDomain.CurrentDomain.SetupInformation.ApplicationBase,
  AppDomain.CurrentDomain.FriendlyName);
 si.Context.Parameters[assemblypath] =\ +
 asmpath +
 \ /s;
 
 IDictionary stateSaver = new Hashtable();
 si.Install(stateSaver);
 }
 
  This is especially attractive, as the mono convention is to provide a
  shell script to start your program (/usr/bin/mcs is a shell-script), so
  you could modify this shell script to run nohup mono myprogram.exe if
  your --background option is specified.
 
 This could be a working hack. Not entirely satisfactory though.
 
  As for portability, you've lost portability as soon as you use
  Mono.Unix, which (except for Stdlib and related classes) will only run
  under Unix-like platforms.  If you're on a Unix-like platform, you
  should be able to add your own P/Invoke calls relying upon unix
  functionality.
 
 I see your point.
  I think we also have differing opinions behind the whole idea behind
  C#.  It is not a Java replacement, attempting to provide write once,
  run anywhere portability -- just looking at System.Windows.Forms should
  reinforce this.  Mono/C# is an environment allowing greater productivity
  while still making the most of your target platform.  If you can do this
  while being portability, so much the better, but Mono won't try to
  ensure portability.  The ease of P/Invoke should reinforce this view.
 Bad formulated from me. What I meant to argue was the idea behind Mono
 is to be able to have an application written on either *nix or windows
 to be able to run on all platforms which is supported by mono or dot
 net.
 
 Hilsen/Regards
 Michael Rasmussen
 
 Get my public GnuPG keys:
 michael  rasmussen  cc
 http://keyserver.veridis.com:11371/pks/lookup?op=getsearch=0xD3C9A00E
 mir  datanom  net
 http://keyserver.veridis.com:11371/pks/lookup?op=getsearch=0xE501F51C
 mir  miras  org
 http://keyserver.veridis.com:11371/pks/lookup?op=getsearch=0xE3E80917
 --
 Princess Leia:
 I'll be back.
 
 
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] Microsoft.VisualBasic.dll gets support for default values for optional parameters

2005-04-21 Thread Rafael Teixeira
On 4/21/05, Ankit Jain [EMAIL PROTECTED] wrote:
 Hi,
 ...
 So, the idea is - dissassemble Microsoft.VisualBasic.dll --
 fixup_with_script -- assemble back.
 Writing the script wasnt much of a problem, but it turned out that
 monodis and ilasm had *some* bugs cos of which the roundtrip wouldnt
 work (http://mono-nosip.blogspot.com/). So, after a long series of bug
 fixes to ilasm/monodis/runtime(small fixes) .. the roundtripping is
 working now.
 ...

Could we possibly cook a similar solution using Cecil, instead of
disassembling and reassembling? Looks like something that is
potentially less-breakable over the time axis.

Just my 2 cents,

-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-devel-list] Some new goodies in Mono.GetOptions

2005-05-06 Thread Rafael Teixeira
Commited to SVN

2005-05-06:2  Rafael Teixeira  [EMAIL PROTECTED]
* Adding Samples directory with mcat Sample (changed main
Makefile but didn't add to the SUBDIRS)
* Mono.GetOptions/Options.cs, Mono.GetOptions/OptionList
An overrideable DefaultArgumentProcessor was added to
base class Options that just collects them
to the string[] RemainingArguments property as before.
It is a virtual method, but it can also be
overriden by another method tagged with the
ArgumentProcessorAttribute in the derived class
to stay binary compatible with old code.
* Added Mono.GetOptions/KillOptionAttribute.cs
This new attribute permit to hide (kill) an inherited
option when overriding the virtual base member.
* Added Mono/AdditionalInfoAttribute.cs
This new attribute permit to add some extra text at
the end of the automatically generated help screen
* Added Mono/ReportBugsToAttribute.cs
This new attribute adds a Report bugs to Url
message at the end of the automatically generated help screen


Sample run from sample mcat.exe:
---
[EMAIL PROTECTED] Samples]$ mono mcat.exe -A first second third
This is just a simulation of a cat-like program.

The command line options where processed by Mono.GetOptions and resulted as:

  ShowTabs = True
  ShowLineEnds = True
  ShowNonPrinting = True
  NumberNonBlank = False
  NumberAllLines = False
  SqueezeBlankLines = False

  RunningOnWindows = False


Would be copying these files to stdout: first, second, third

Follows help screen
-

mcat  1.0.0.0 - (c)2005 Rafael Teixeira
Simulated cat-like program

Usage: mcat [options] [FILE]...
Concatenate FILE(s), or standard input, to standard output.
Options:
  -A --show-all  equivalent to -vET
  -b --number-nonblank   number nonblank output lines
  -e equivalent to -vE
  -E --show-ends display $ at end of each line
  -n --numbernumber all output lines
  -s --squeeze-blank never more than one single blank line
  -t equivalent to -vT
  -T --show-tabs display TAB characters as ^I
  -u (ignored)
  -v --show-nonprinting  use ^ and M- notation, except for LFD and TAB
 --help  display this help and exit
 --version   output version information and exit

With no FILE, or when FILE is -, read standard input.

Please report bugs to [EMAIL PROTECTED]
---

Compare the help-screen part to what 'cat --help' returns

Enjoy,

-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] Mono ASP.NET is very slow with big html pages...

2005-05-11 Thread Rafael Teixeira
First of all,

Separate your Javascript on a .js file that you include, and generate
your menus from embedded or on-demand xml data. 315KB for a page is
surely not a good design.

:)

On 5/11/05, Hubert FONGARNAND [EMAIL PROTECTED] wrote:
 I'm currently working on an intranet project. We want to develop it as a
 cross-platform project. It would be useful that it could run under MS.NET or
 Mono...
 I'm working with the svn version of mono 1.1.7.99
 I've seen that mono (xsp) is very slow when rendering (relative) big html rich
 content. My Accueil.aspx pages is about 315Ko... It contains many javascript
 for generating menus dynamically.
 On MS.NET, the page takes 3sec (the first time) to be rendered, and about
 500ms (the second time)
 On Mono it takes about 12sec everytime. when rendering the xsp process takes
 about 100% of my cpu :
 
 Is there a way to do some profiling in order to know wich method takes the
 more time?
 When I run mono --verbose xsp.exe I see that xsp is waiting most of time... is
 it normal?
 
 Thanks in advance...
 ___
 Ce message et les éventuels documents joints peuvent contenir des 
 informations confidentielles.
 Au cas où il ne vous serait pas destiné, nous vous remercions de bien vouloir 
 le supprimer et en aviser immédiatement l'expéditeur. Toute utilisation de ce 
 message non conforme à sa destination, toute diffusion ou publication, totale 
 ou partielle et quel qu'en soit le moyen est formellement interdite.
 Les communications sur internet n'étant pas sécurisées, l'intégrité de ce 
 message n'est pas assurée et la société émettrice ne peut être tenue pour 
 responsable de son contenu.
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] [PATCH] Added Mono.Runtime.GetVersion()

2005-06-04 Thread Rafael Teixeira
The configure.ac part doesn't work, as AC_INIT says that $VERSION
isn't a literal

And I end with mono-ERSION.tar.gz when doing make dist-gzip for instance.

On 6/4/05, Kornél Pál [EMAIL PROTECTED] wrote:
 Hi,
 
 This patch adds a new internal static GetVersion() method to the internal
 class Mono.Runtime in mscorlib.dll.
 
 I created this funtion because there is no way to obtain the version of Mono
 runtime programmatically altought I think it is necessary.
 
 It is internal to preserve compatibility with .NET Framework but can be
 called using reflection or using the hack that you create your own
 Mono.Runtime.GetVersion() method in your assembly but it is not recommended.
 
 configure.in stuff is from the patch Duncan Mak in bug #39264.
 
 Comments are welcome.
 
 Kornél
 
 
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 
 
 
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-devel-list] Re: [Mono-hackers-list] Preparing the release notes.

2005-06-08 Thread Rafael Teixeira
Hi Miguel and folks,

Mono.GetOptions
-

Big feature added:
- Mono.GetOptions.Useful.CommonCompilerOptions: implements common .net
compiler options processing (extracted from mbas), including soft/hard
assembly referencing, target type/name processing,... mbas already
uses it.

New informational attibutes: 
- Mono.IsPartOfPackageAttribute: For installer reflection
- Mono.AdditionalInfoAttribute: This new attribute permit to add some
extra text at the end of the automatically generated help screen
- Mono.ReportBugsToAttribute: This new attribute adds a Report bugs
to Url message at the end of the automatically generated help
screen

Important Bug Fix:
- Support quoted arguments in response files. Fixes bug #65484.

Small features
- To make code using Mono.GetOptions Unit-Testable the assembly with
the Options-derived class is assumed to be the entry one instead of
the one pointed by Reflection, unless some Mono.GetOptions provided
class is used directly
- Optional splitting of option values on Commas 
- Mono.GetOptions.KillOptionAttribute: This new attribute permit to
hide (kill) an inherited option when overriding the virtual base
member.
- Mono.GetOptions.Options:
Added helper properties string FirstArgument, SecondArgument,
ThirdArgument, FourthArgument, FifthArgument and bool GotNoArguments
Added a helper property bool RunningOnWindows

:)

-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] Master Pages

2005-06-08 Thread Rafael Teixeira
Have you compiled Mono form SVN for the 2.0 profile? If not, the
tentative 2.0 features won't be available...

Current Mono releases (installable packages) track .NET 1.1, not the
unreleased (beta) .NET 2.0.

:)

On 6/8/05, jblais [EMAIL PROTECTED] wrote:
  
  
 
 Hello, 
 
   
 
 I'm trying to use a new ASP.NET 2.0 feature, Master Pages. I'm having few
 problems. 
 
 First : I have created a master page with a public property. I need to
 access the property from the content pages, so I add the following tag %@
 MasterType VirtualPath=~/MyMasterPage.master % in my
 content page. I end up with an Only one page allowed error, when I try to
 access the content page. 
 
 The fact is it works fine under Visual Web Dev Express. Do I miss something?
 
   
 
 Second minor problem 
 
 I define a contentplaceholder in the master page, I place a default message
 between the beginning and closing tag. 
 
 In a content page I do NOT define a content referencing the
 contentplaceholder of the master page, the default text is displayed, it is
 normal behaviour. 
 
 In another content page I DO define a content referencing the
 contentplaceholder and affect a message, the default text message is
 displayed along with the overriding message, but it should not display the
 default message. Does someone has an explanation ? 
 
   
 
 Thanks. 
 
 Regards. 
 
   
 
 Johann BLAIS [EMAIL PROTECTED] 
 
   
  
 
 ---
  Outgoing mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.824 / Virus Database: 562 - Release Date: 28/12/2004
  
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 
 
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] AOT + Embedding = ?

2005-06-08 Thread Rafael Teixeira
Maybe the hiccups come from elsewhere like the GC...?

:)

On 6/8/05, Jim Purbrick [EMAIL PROTECTED] wrote:
 Hi all,
 
 Is there a way to use AOT compilation when embedding
 mono (or find out if AOT compiled assemblies are being
 used)? I'm getting a performance hiccup the first time
 I run methods, which I assume is down to JIT
 compilation, so want to try using AOT compiled
 assemblies to see if that solves the problem. I'm AOT
 compiling the assemblies and the AOT output is
 available in the same directory as the bytecode
 assemblies, but I'm still getting a performance
 hiccups.
 
 Cheers,
 
 Jim.
 
 
 
 ___
 How much free photo storage do you get? Store your holiday
 snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] -langversion defaults

2005-06-10 Thread Rafael Teixeira
Also mcs allows things that csc 1.1 doesn't allow as shorter delegate
instatiation. I also vote to have -langversion:ISO-1 for all 1.1
builds with mcs.

On 6/10/05, Todd Berman [EMAIL PROTECTED] wrote:
 Hey,
 
 I think for the 1.1.x series, we need to make mcs assume a
 -langversion:ISO-1 default. This would be really helpful for people
 building applications that should work with .net 1.1. It seems (maybe I
 am wrong) that if you are building a .net 1.1 app, you use mcs, and if
 you are building a .net 2.0 app, you use gmcs. Maybe that isn't the end
 goal, but it certainly seems to be the current way of doing things.
 Enforcing -langversion:ISO-1 as a default would go a long way to help
 solving some of those issues.
 
 --Todd
 
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] Re: FW: Soap Serialization interop

2005-06-21 Thread Rafael Teixeira
Hi Robert,

Outputs as I and many other Mono developers mainly use only Linux
nowadays and so we can't easily reproduce cross-framework issues.

But sure you can post your test here, or attach it to a bugcase, so
that people that work in windows can help as well.

Thanks,

:)

On 6/21/05, Robert Jordan [EMAIL PROTECTED] wrote:
 Rafael,
 
  Robert,
 
  We fix things in the interop/serialization area as needed and possible
  when enough information is given to us...
 
 I have an automatic test for serialization issues. Do you
 want the test itself or just its output?
 
 Rob
 
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] Detecting Unicode strings

2005-06-28 Thread Rafael Teixeira
Hi Aleksandar,

Are you meaning Unicode (16-bit wide chars [in truth UTF-16, as
Unicode is 32bit nowadays]) or UTF-8 (8-bit multibyte encoding of
Unicode chars)?

The wide char encodings (UCS-2, UTF-16, UCs-4) are easily spotted by
the large number of zeroed bytes in the stream for texts in western
languages like english or portuguese. but things get harder with
eastern texts.

UTF-8 has some specific byte-combinations that are valid, and so you
can look for invalid ones to guess it is not encoded in UTF-8, but for
english texts those byte-combinations are very rare to make it
reliable.

Google for BOM Byte Order Marker to see another (non-standard) way
to look at it.

Any of those method are just playing guess nad should be applied with
care. The correct way is to have the source text correctly identified
with what encoding it is using, like xml for instance mandates (utf-8
is the default).

HIH,

On 6/28/05, Aleksandar Dezelin [EMAIL PROTECTED] wrote:
 How can I detect if the string is a Unicode string at runtime?
  
  cheers,
  Aleksandar Dezelin
 
 -- 
 Linux is like wighwam, no windows no gates and apache inside... 
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 
 
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] IBM DB2 db2_36.so problem

2005-07-01 Thread Rafael Teixeira
The file you need is libdb2_36.so. Do a locate for it.

For 8.1 it would be something like

/opt/IBMdb2/V8.1/lib/libdb2_36.so

So a 

/sbin/ldconfig /opt/IBMdb2/V8.1/lib

would make the library loader know where to find your copy of libdb2_36.so.

But I'm not sure version 8.2 is compatible with the current DB2
provider (I could not find definite documentation in the web but the
library may have been renamed to libdb2.so and may not be ABI/API
compatible).

Also they've developed their own ADO.NET provider for 8.2 but it only
installs for .NET in Windows.

:)


On 7/1/05, Pablo Cardona [EMAIL PROTECTED] wrote:
 Hi, I'm trying to access to a DB2 database in a remote computer, and
 this exceptions is thrown:
 
 Unhandled Exception: System.DllNotFoundException: db2_36
 
 I've read in the mono-project web page that I need the library
 db2_36.so, but I can't find this library anywhere.
 I,ve installed IBM DB2 Personal Developer's Edition v8.2 but this
 library is not installed, so I don't know where can I find this
 library.
 So does anybody know where I can get this library??
 
 Thanks.
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] IBM DB2 db2_36.so problem

2005-07-01 Thread Rafael Teixeira
Probably yes. But at least this exception is being thrown in the
managed code part of the provider and so you can debug it and help us
possibly deal with new situation.

:) 

On 7/1/05, Pablo Cardona [EMAIL PROTECTED] wrote:
 Thanks for your answer, I've installed DB2 Runtime Clients V8.1 and
 now I have the libdb2.so library, I've made the /sbin/ldconfig and
 renamed libdb2.so to libdb2_36.so to match it with the not found
 error, and it seems that the cli works properly, but another exception
 has come:
 
 Unhandled Exception: IBM.Data.DB2.DB2Exception: No error information
 in 0x000a5 IBM.Data.DB2.DB2ClientUtils:DB2CheckReturn (Int16 sqlRet,
 Int16 handleType, IntPtr handle, System.String message,
 IBM.Data.DB2.DB2Connection connection)
 in 0x00071 IBM.Data.DB2.DB2Environment:.ctor ()
 in 0x0004c IBM.Data.DB2.DB2Environment:get_Instance ()
 in 0x8 IBM.Data.DB2.DB2ConnectionPool:FindConnectionPool
 (System.String connectionString)
 in 0x00015 IBM.Data.DB2.DB2ConnectionSettings:GetConnectionSettings
 (System.String connectionString)
 in 0x00020 IBM.Data.DB2.DB2Connection:SetConnectionString
 (System.String connectionString)
 in (wrapper remoting-invoke-with-check)
 IBM.Data.DB2.DB2Connection:SetConnectionString (string)
 in 0x00019 IBM.Data.DB2.DB2Connection:.ctor (System.String conString)
 in (wrapper remoting-invoke-with-check)
 IBM.Data.DB2.DB2Connection:.ctor (string)
 in 0x00026 MainClass:Main (System.String[] args)
 
 
 
 Could it be because the db2 version of the remote db is 7.x and the
 db2 I'm using is 8.1??
 
 Thanks for the help.
 
 Pablo.
 
 On 7/1/05, Rafael Teixeira [EMAIL PROTECTED] wrote:
  The file you need is libdb2_36.so. Do a locate for it.
 
  For 8.1 it would be something like
 
  /opt/IBMdb2/V8.1/lib/libdb2_36.so
 
  So a
 
  /sbin/ldconfig /opt/IBMdb2/V8.1/lib
 
  would make the library loader know where to find your copy of libdb2_36.so.
 
  But I'm not sure version 8.2 is compatible with the current DB2
  provider (I could not find definite documentation in the web but the
  library may have been renamed to libdb2.so and may not be ABI/API
  compatible).
 
  Also they've developed their own ADO.NET provider for 8.2 but it only
  installs for .NET in Windows.
 
  :)
 
 
  On 7/1/05, Pablo Cardona [EMAIL PROTECTED] wrote:
   Hi, I'm trying to access to a DB2 database in a remote computer, and
   this exceptions is thrown:
  
   Unhandled Exception: System.DllNotFoundException: db2_36
  
   I've read in the mono-project web page that I need the library
   db2_36.so, but I can't find this library anywhere.
   I,ve installed IBM DB2 Personal Developer's Edition v8.2 but this
   library is not installed, so I don't know where can I find this
   library.
   So does anybody know where I can get this library??
  
   Thanks.
   ___
   Mono-devel-list mailing list
   Mono-devel-list@lists.ximian.com
   http://lists.ximian.com/mailman/listinfo/mono-devel-list
  
 
 
  --
  Rafael Monoman Teixeira
  ---
  I'm trying to become a Rosh Gadol before my own eyes.
  See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
  It hurts!
 
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] Re: Can mono have methods(etc) not present MS implementation?

2005-07-04 Thread Rafael Teixeira
The first suggestion is out-of-question, for a library distributed with Mono.

The second one is unadvisable, but sometimes we already did that to be
able to make your compilers work (indeed they have some problems when
running them on MS.NET).

:)

On 7/2/05, Robert Jordan [EMAIL PROTECTED] wrote:
 Alexandre,
 
  My question is simple, can we do something on a MS controlled namespace
  that is not part of the default implementation? Of course raising a mcs
  warning telling something like This method will make your app not to
  run on MS.NET.
 
  This comes from a desire to introduce something in CodeDom, for instance
  for a Method I wish it to be able to contain more info than the default
  like SourceCodeLocation (line/column).
 
  What do you advice, to create a fork and keep patching it to stay sync
  with mono tree or use what I proposed?
 
 If you just want to warn the consumer of the changed library about
 the incompatibility: misuse the ObsoleteAttribute:
 
 [Obsolete(THIS METHOD DOESN'T WORK ON MSFT'S RUNTIME!)
 public void FooMethod()
 
 If you want to build code that will run on both runtimes,
 then never change the public interface. Introduce new members
 only as internal. Those menbers can be accessed using reflection.
 
 Rob
 
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] make test error

2005-07-04 Thread Rafael Teixeira
Your message says you've mistyped:

/debug full  instead of  /debug:full

Just write it correctly

:)

On 7/3/05, Toan Ly [EMAIL PROTECTED] wrote:
 Hello 
   
 I have the following error. I suspect it was caused by /debug:full but I m
 not so sure. Please give me some directions, thank you in advance. 
   
 vbc.exe /lib:../../../class/lib/default   -d:NET_1_1
 -d:ONLY_1_1 /debug+ /debug
 full /target:library /out:rerrors_btest_default.dll
 /r:../../../class/lib/defau
 t/rerrors.dll
 -r:../../../class/lib/default/nunit.framework.dll
 -r:../../../cla
 s/lib/default/nunit.core.dll
 -r:../../../class/lib/default/nunit.util.dll  @../
 ./../build/deps/rerrors_btest_default.dll.response
 Option debug can be used at most 1 times. Ignoring extras...
 MonoBASIC Compiler  0.96.2.0 - (c)2002, 2003, 2004, 2005 Rafael Teixeira
 
 THIS IS AN ALPHA SOFTWARE.
 
 error BC2001: Source file 'full' could not be found!!!
 Compilation failed: 1 Error(s), 0 warnings
 make[2]: *** [rerrors_btest_default.dll] Error 1
 make[2]: Target `test-local' not remade because of errors.
 make[2]: Leaving directory `/monosrc/mcs/mbas/Test/rerrors'
 make[1]: *** [do-test] Error 2
 make[1]: Target `test' not remade because of errors.
 make[1]: Leavi ng directory
 `/monosrc/mcs/mbas/Test/rerrors'
 make: *** [test-recursive] Error 1
 make: Target `test' not remade because of errors.
  
  
 
 __
 Do You Yahoo!?
 Tired of spam? Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com 
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 
 
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] ASP.NET: Cannot find type

2005-07-05 Thread Rafael Teixeira
Please google for the @assembly directive and some discussion of the
assembly section in web.config. Mono may have a bug or isn't
configured exactly as MS.NET in that regard, as surely a library
deployed to the /bin directory should have been referenced
automatically. Note that AFAIK xsp/mod_mono have a restart problem so
that some changes, and yor case may fit the bill, demand you to
restart manually the server to really appear, we are still looking for
a solution...

Fun,

On 7/5/05, Slava Petrenko [EMAIL PROTECTED] wrote:
 Rafael Teixeira wrote:
 You need to compile the C# file as VS.NET does for you when it handles
 the 'codebehind' attribute in @page directive...
 
 :|
 
 well, i did
 mcs Default.aspx.cs -r:System.Web -r:System.Data -r:System.Drawing
 -r:bin/CMSNET.dll -t:library
 
 and got Default.aspx.dll, moved it to bin and the result is the same as
 it was :-(
 
 some backgrounds: it's a sample asp.net site i'm trying to get working
 with mono. it was created with vs.net and has .csproj. pj2make created
 me a make file from .csproj. make created CMSNET.dll. so i compile all
 .cs files with that dll.
 On 7/4/05, Slava Petrenko [EMAIL PROTECTED] wrote:
 
 hi all,
 
 any ideas how to find out why defined type doesn't get found?
 
 i've got this:
 
 
   Server Error in '/test' Application
 
 
 
 
 /Parser Error/
 
 *Description: *Error parsing a resource required to service this
 request. Review your source file and modify it to fix this error.
 
 *Error message: *Cannot find type CMSNET._Default
 
 *File name: * /home/slava/web/CMSNET/Default.aspx*Line: *1 **
 
 ***Source Error: * **
 ||
 
 %@ Page language=c# Codebehind=Default.aspx.cs AutoEventWireup=false 
 Inherits=CMSNET._Default %
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN 
 HTML
 HEAD
 
 
 
 
 Default.aspx.cs - is at the same catalog as Default.aspx is
 
 *using* System;
 *using* System.Collections;
 *using* System.ComponentModel;
 *using* System.Data;
 *using* System.Drawing;
 *using* System.Web;
 *using* System.Web.SessionState;
 *using* System.Web.UI;
 *using* System.Web.UI.WebControls;
 *using* System.Web.UI.HtmlControls;
 
 *using* CMSNET.Common;
 
 *namespace* CMSNET
 {
 //*public* *class* _Default : System.Web.UI.Page
 {
 *   protected* System.Web.UI.WebControls.HyperLink HyperLink1;
 *
private* void Page_Load(object sender, System.EventArgs e)
 {
 string ready = *new* AppEnv(Context).GetAppSetting(ready);
 
 *if*(ready.Equals(true))
 {
 Response.Redirect(CDA/HomePg.aspx);
 }
 }
 
 #region Web Form Designer generated code
 *override* *protected* void OnInit(EventArgs e)
 {
 InitializeComponent();
 *   base*.OnInit(e);
 }
 
 *private* void InitializeComponent()
 {
 *this*.Load += *new* System.EventHandler(*this*.Page_Load);
 
 }
 #endregion
 }
 }
 
 /Default.aspx.cs
 
 
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 
 
 
 
 
 
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] Problem with MS.NET and Mono with Remoting

2005-07-18 Thread Rafael Teixeira
Looks like we will need to implement the enumerator helper class for
CollectionBase exactly as MS for this to work.

Thanks for pointing this out Hubert.

Please fill a Bugzilla case with more details.

:|


On 7/18/05, Hubert FONGARNAND [EMAIL PROTECTED] wrote:
 I've an issue with a Mono .NET Remoting server and a MS.NET (windows 2003)
 client...
 
 Description of Problem:
 I've got a NullReference Exception when dealing with Collection of objects :
 
 Exception non gérée : System.NullReferenceException: Object reference not
 set to
  an instance of an object
 
 Server stack trace:
 in 0x00015 System.Collections.CollectionBase:GetEnumerator ()
 in 0x0001e IntranetEngineServer.CServerManager:truc
 (IntranetEngineServer.Cont
 ainer C)
 in 0x0 unknown method
 in (wrapper managed-to-native)
 System.Runtime.Remoting.RemotingServices:Internal
 Execute (System.Reflection.MethodBase,object,object[],object[])
 in 0x00199
 System.Runtime.Remoting.RemotingServices:InternalExecuteMessage (Sy
 stem.MarshalByRefObject target, IMethodCallMessage reqMsg)
 
 Exception rethrown at [0]:
at
 System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage req
 Msg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData
 msgDa
 ta, Int32 type)
at IntranetEngineServer.CServerManager.truc(Container C)
at MainClass.Main(String[] args)
 
 I've no problems with a Mono Server and a Mono Client...
 
 See http://bugzilla.ximian.com/show_bug.cgi?id=75575 for testcases
 
 ___
 Ce message et les éventuels documents joints peuvent contenir des 
 informations confidentielles.
 Au cas où il ne vous serait pas destiné, nous vous remercions de bien vouloir 
 le supprimer et en aviser immédiatement l'expéditeur. Toute utilisation de ce 
 message non conforme à sa destination, toute diffusion ou publication, totale 
 ou partielle et quel qu'en soit le moyen est formellement interdite.
 Les communications sur internet n'étant pas sécurisées, l'intégrité de ce 
 message n'est pas assurée et la société émettrice ne peut être tenue pour 
 responsable de son contenu.
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] Interactive C# prompt

2005-07-20 Thread Rafael Teixeira
I don't how much Mads Lindstrom C#Shell evolved but you can give it a try:

http://csshell.sourceforge.net/

For the Boo language there is a real interpreted/Incremental Shell,
that is also available inside MonoDevelop with the BooBinding plugin.

Fun

:)

On 7/19/05, Vorobiev Maksim [EMAIL PROTECTED] wrote:
 
 As I can understand, it cann't be done. C# is a language for
 compilation, not for interpretaion (as far as you are not going to enter
 IL-instructions at promt).
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Colin JN
 Breame
 Sent: Tuesday, July 19, 2005 7:54 PM
 To: mono-devel-list@lists.ximian.com
 Subject: [Mono-devel-list] Interactive C# prompt
 
 Hello,
 
 I'm wondering whether there is such a thing as an interactive C# prompt
 for mono. e.g. where commands can be entered and executed one-by-one.
 
 If not, any ideas about how I would go about writting something like
 this?
 ___
 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
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] NetworkStream

2005-07-20 Thread Rafael Teixeira
Did you compile with VS.NET/vbc in Windows, or is compiling with mbas in Linux?

If so, mbas currently doesn't automatically initializes local
variables as vbc seems to do so you need to be explicit:

  Dim llogReadEverything As Boolean = false

Hope it helps,

:|

On 7/20/05, Arnhoffer Károly [EMAIL PROTECTED] wrote:
 Hi,
 
 If I do not do the While Not llogReadEverything loop, it reads the data.
 
 Private Function ReadData(ByRef tobjNetStream As  NetworkStream, 
 ByRef tbytBuffer As Byte(), ByVal tintFullSize As  Integer) As Boolean
  Dim lintSize As Integer = 0
  Dim llogReadEverything As Boolean
  Dim lintCounter As Integer
 
  ReDim tbytBuffer(tintFullSize - 1)
 
  While Not tobjNetStream.DataAvailable
Thread.CurrentThread.Sleep(50)
  End While
 
  lintSize += tobjNetStream.Read(tbytBuffer, 0, tintFullSize)
 
  Return True
  End Function
 
 Do not understand the reason why. :)
 
 Arnhoffer Károly
 
 eCron Informatika Kft.
 1119 Budapest, Hadak útja 9.
 
 tel./fax: +36 (1) 203-1535
 mobil:   +36 (30) 472-8855
 e-mail:  [EMAIL PROTECTED]
 
 
 
 -Original Message-
 From: Martin Hinks [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 20, 2005 10:59 AM
 To: Arnhoffer Károly
 Cc: mono-devel-list@lists.ximian.com
 Subject: Re: [Mono-devel-list] NetworkStream
 
 
 Hi Arnhoffer,
 
 There are various things to try:
 
 1.) Check that tIntFullSize is not 0 when the .Read line is called.
 2.) Try this with a plain networkstream derived from a socket rather than 
 from a TcpClient
 3.) If you are trying to read the entire buffer of length tintFullSize, is it 
 not possible that the server has not sent all the data when the read is 
 performed? ie. Just because DataAvailable is true does NOT mean that you may 
 be able to read ALL the data you are expecting from the stream, it might not 
 have arrived yet, and as you are expecting to be able to read it all it might 
 return 0 (I think it should block though, which is why it must work on .NET)
 4.) After some of the diagnoses above, file a bugzilla report.
 
 Martin
 
 On 7/20/05, Arnhoffer Károly [EMAIL PROTECTED] wrote:
  Hi,
 
  I have a server service created by Visual Studio .Net. It is using
  System.Net.Sockets.TcpClient.GetStream to get a stream to communicate
  on the network. When I run this service on a Windows machine (MS .NET
  framework) everything is fine, but when running on a Linux machine
  (SuSE 9.2, Mono 1.1.8 (from RPMs)) the service reads allways zeroes
  from the stream.
 
  Example:
 
  Private Function ReadData(ByRef tobjNetStream As
  NetworkStream, ByRef tbytBuffer As Byte(), ByVal tintFullSize As
  Integer) As Boolean
 
  Dim lintSize As Integer = 0
  Dim llogReadEverything As Boolean
  Dim lintCounter As Integer
 
  ReDim tbytBuffer(tintFullSize - 1)
 
  While Not llogReadEverything
  While Not tobjNetStream.DataAvailable
  Thread.CurrentThread.Sleep(50)
  End While
 
  lintSize += tobjNetStream.Read(tbytBuffer, 0, 
  tintFullSize)
  If lintSize = tintFullSize Then
  llogReadEverything = True
  End If
  End While
 
 
  Return True
  End Function
 
  A function like this gets zeroes from the stream when nonzero data was
  sent.
 
 
  Thanks!
  Arnhoffer Károly ___
  Mono-devel-list mailing list
  Mono-devel-list@lists.ximian.com
  http://lists.ximian.com/mailman/listinfo/mono-devel-list
 
 
 
 --
 Martin Hinks
 http://www.m-s-d.net
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] mono SDL linux/win32 SDL.DLL - my brain hurts!

2005-07-21 Thread Rafael Teixeira
Hi Ted,

Did you forget to copy the *.dll.config files that tell mono how to
link against native non-windows libraries?

See http://www.mono-project.com/Interop_with_Native_Libraries for details.

rant
This is the authoritative summary on the subject and I can't think of
a good reason for some people missing it on Mono's site.

trying-to-be-funny
Should we have a prominent page on the site for a Quick Course on
Wiki Navigation or Googling the Web?
/trying-to-be-funny

/rant

Sorry for the rant, possibly I'm not thinking straight today.

Lets cheer up,

:)

On 7/21/05, ted leslie [EMAIL PROTECTED] wrote:
 
 This version (of SDL.NET) has a script directory that you run to make a 
 project for sharpdev or monodev
 i made for monodev (all though i have never used it, use slick-edit for dev),
 the script assumed the exe would run right away, so i needed to add  mono  
 in front of it
 as i dont have my kernel mod'd to run a mono.exe right away.
 Then when i started monodevelop and loaded in the project it made for me for 
 monodevelop ..
 it still has windows pathing in it that caused errors,
 Really seems to me this SDL.NET  project is very Windows flavoured!
 
 I don't know monodevelop ..
 
 Can someone build a workable SDL.NET (for/on linux) for me and send it or 
 post it up somewhere?
 
 Having said that, I can't help but think that even this newer version, if i 
 was to sucessfully build it,
 wouldn't it too still want to find/link to something other then SDL.dll ?
 I dont see all the DllImport attributes in this newer version either ... 
 making me think this isn't
 destin to be built  using mono to target linux, but for mono to target .Net 
 on Win32 OS?
 
 Just to be sure here - there is a SDL.NET build FOR Mono on Linux right, if 
 anyone is using it ...
 can they please come forward :)   ?
 
 -tl
 
 On Thu, Jul 21, 2005 at 03:36:48PM +1200, David Mitchell wrote:
  Try this:
 
  http://prdownloads.sourceforge.net/cs-sdl/SdlDotNet-3.1.2-1.zip?download
 
  Looks like the latest linux version to me.
 
  David
 
  ted leslie wrote:
  (After my preamble, I am essentially asking .. how does a wrapper to
  .Net/Mono work .)
  
  There must not be to many people writting cross platform apps
  that need sound? Searching for sound (audio, mp3, sound) on
  mono-project.com via mail list, etc
  returns almost nothing.
  
  Anyways I came across SDL on the Resources page wow!!! this will solve
  my problems!
  
  I go to   cs-sdl.sourceforge.net
  and check it out,
  It has SDL.NET for Win32 and Linux (mono is supported, it says)
  So i download the support libraries for SDL.NET which are the traditional
  SDL libs .. put them on Win32 and updated
  my ones on my Suse box.
  I ran the Examples just fine on Win32
  
  Now on to Linux and Mono ...
  
  First off the latest SDL.NET downloads on sourceforge seem to be for Win32
  only (as an aside they have a nice installer that does everything for you
  on the Win32 side of things)
  
  So i dig back a COUPLE years and get a gz file (of SDL.NET) that has linux
  support
   (incidently i see screen caps in SDL.NET project page of SDL apps
   running on linux so even thought
   the linux support in the project seems old, it infact looks
   like it run and works)
  
  I build the SDL.NET on Linux (using latest stable release Mono), but there
  is an error in the Makefile,
  the pathing slash is of the windows variety (hm...?), so i fix that
  and Makefile the SDL.NET DLL's
  and the examples.
  
  The Examples compile/build fine but the give a Mono runtime error that
  they can't
  find System DLL:SDL.dll
  
  
  --An exception was thrown by the type initializer for SdlDotNet.Music
  --- System.DllNotFoundException: SDL.dll
  
  
  So this is were I hit a dead end because I don't know anything about
  .Net/C# wrappers to traditional C based libraries on Linux.
  I looked at the gtk-sharp wrapper (cause i know it works), I see a mixer
  of C and CS files and traditional
  gcc references in makefiles, but basically it looks like a big job to
  figure out gtk-sharp's process of a wrapper.
  
  On that note, is there a doucmentation section somewhere on that - i.e.
  building wrappers?
  
  To me, I am thinking in the end SDL.NET has to get hold of the routines in
  the
  SDL .so file right?
  how does that happen? I know how it happens in a traditional C/gcc
  compile, link, create a .so file, and compile your apps with dynamic
  support againt the .so   what bit of magic get Mono to see/do that
  (with its wrapper)?
  
  I check around the SDL.NET code and see in the Natives.cs file this:
  
  const string SDL_DLL = SDL;
  const string MIX_DLL = SDL_mixer;
  // General
  [DllImport(SDL_DLL,
  CallingConvention=CallingConvention.Cdecl),
  SuppressUnmanagedCodeSecurity]
  public static extern int 

Re: [Mono-devel-list] mozembed-sharp seems broken

2005-07-21 Thread Rafael Teixeira
Doing 'make clean' after updating from svn made things work for me on
the next 'make'. I did make clean  make  sudo make install on
gtk-sharp, gtksourceviewsharp, mozembed-sharp in that order. After
that I was able to update and compile MD.

:)

On 7/5/05, Alexandre Miguel Pedro Gomes [EMAIL PROTECTED] wrote:
 I have the same problem here. I managed to find that if you use
 gtk-sharp svn this happens. Using the 1.9.5 works fine. Also, there are
 similar problems with gtksourceview.
 
 On Sat, 2005-07-02 at 12:08 +0100, Paul wrote:
  Hi,
 
  Just done an update and mozembed-sharp is throwing up the following
  error. Any ideas on it?
 
  ./MozWindow.cs(206) error CS0246: Cannot find type 'NewWindowArgs'
  make[1]: *** [GtkMozApp.exe] Error 1
  make: *** [all-recursive] Error 1
 
  TTFN
 
  Paul
  ___
  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
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] gtk ComboBox questions...

2005-07-22 Thread Rafael Teixeira
Stop Nonsense!!!

Hubert, Just call the proper method:

int count = myComboBox.Model.IterNChildren();

:)

On 7/22/05, Hubert FONGARNAND [EMAIL PROTECTED] wrote:
 
 
 --  Message transmis  --
 
 Subject: Re: [Mono-devel-list] gtk ComboBox questions...
 Date: Vendredi 22 Juillet 2005 14:14
 From: Hubert FONGARNAND [EMAIL PROTECTED]
 To: Mikkel Kruse Johnsen [EMAIL PROTECTED]
 
 Le Vendredi 22 Juillet 2005 12:35, vous avez écrit:
  Hi Hubert
 
  The ComboBox is using a TreeModel to represent the rows. So look at
  TreeModel (TreeStore or ListStore) for info.
  http://www.go-mono.com/docs/ http://www.go-mono.com/docs/
 
  To clean up all entries in a combobox...:
 
  TreeStore store = (TreeStore)combo.Model;
  store.Clear();
 
  Count the entries I don't know if there is a function for that, else you
  have to loop through the rows like this:
 
 
  TreeStore model = (TreeStore)combo.Model;
 
 I cannot cast a treemodel into a tree store...
 i got :
 Unhandled Exception: System.InvalidCastException: Cannot cast from source
  type to destination type.
 when i do :
 TreeStore store=(TreeStore)drpCivilite.Model;
 
  TreeIter iter   = new TreeIter();
 
  int count = 0;
  bool res = model.GetIterFirst(out iter);
  while(res)  {
  count++;
  res = model.IterNext(ref iter);
  }
 
  /Mikkel
 
  On Fri, 2005-07-22 at 09:55 +0200, Hubert FONGARNAND wrote:
 
 
 
  I'm new to Gtk# and I can't find any help on MonoDoc with the ComboBox
  widget
 
  (not the old Combo Widget)
 
 
 
  Does someone know how to :
 
  Clean up all entries in a combobox...
 
  Count the number of entries in the combobox
 
 
 
  thanks in advance...
 
 
 
  ___
 
  Ce message et les ventuels documents joints peuvent contenir des
  informations confidentielles.
 
  Au cas o il ne vous serait pas destin, nous vous remercions de bien
  vouloir le supprimer et en aviser immdiatement l'expditeur. Toute
  utilisation de ce message non conforme  sa destination, toute diffusion
  ou publication, totale ou partielle et quel qu'en soit le moyen est
  formellement interdite.
 
  Les communications sur internet n'tant pas scurises, l'intgrit de ce
  message n'est pas assure et la socit mettrice ne peut tre tenue pour
  responsable de son contenu.
 
  ___
 
  Mono-devel-list mailing list
 
  Mono-devel-list@lists.ximian.com
  mailto:Mono-devel-list@lists.ximian.com
 
  http://lists.ximian.com/mailman/listinfo/mono-devel-list
  http://lists.ximian.com/mailman/listinfo/mono-devel-list
 
 ---
 
 ___
 Ce message et les éventuels documents joints peuvent contenir des 
 informations confidentielles.
 Au cas où il ne vous serait pas destiné, nous vous remercions de bien vouloir 
 le supprimer et en aviser immédiatement l'expéditeur. Toute utilisation de ce 
 message non conforme à sa destination, toute diffusion ou publication, totale 
 ou partielle et quel qu'en soit le moyen est formellement interdite.
 Les communications sur internet n'étant pas sécurisées, l'intégrité de ce 
 message n'est pas assurée et la société émettrice ne peut être tenue pour 
 responsable de son contenu.
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] momo on suse 9.3

2005-07-25 Thread Rafael Teixeira
If you want to contribute code it is best to compile from SVN. 

But you can do so to another prefix and install/upgrade to the latest
release from the Mono channel  in the standard prefix to be able to
use that Mono-based goodies like Beagle and F-Spot.

Remember that 9.3 is months old by now, and so is their package of
Mono as present in the CDs/DVD.

:)

On 7/23/05, Dennis Hayes [EMAIL PROTECTED] wrote:
 
 
 I just got suse 9.3 pro. 
 
 I want to be/am a contributor to Mono, but have been using Windows. 
 
 do I install the Mono that comes with Suse, or from SVN, or install the Suse
 version, then up grade to the SVN version? 
 
 Any other tips? 
 
 Thanks, 
 
 Dennis 
 
   
 
   
 
  
 
  
  Start your day with Yahoo! - make it your home page 
 
 
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 
 
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] gtk ComboBox questions...

2005-07-25 Thread Rafael Teixeira
Well the naming follows Gtk, so that you can reuse Gtk+ documentation
and skills.

But surely we have here a situation where a clearer name like
NumberOfChildren or CountOfChildren would be a better choice, as Iter
is implied by the class (in Gtk+ which in written in C it wasn't) so
it isn't a needed prefix and N is too short and really doesn't convey
a real meaning for people coming from Windows (VB6/ActiveX) or using
the Base Class Library. In practical terms I would create some
semantical overloads for those methods/properties that are such
rooted Gtk-isms.

I'll comment another facet in my answer to Todd's post also in this thread. 

On 7/24/05, John BouAntoun [EMAIL PROTECTED] wrote:
 That brings up a good point.
 
 Not sure if this is still the case, but why in today's day and age (of C# and 
 other great managed languages) is someone using IterNChildrend() (a strangely 
 named function) to return a property that would be most obviously named Count 
 (as with most other collections)?
 
 This was one thing that made learning the tree/list-store workings almost 
 impossible for me in C#.
 
 JBA
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rafael Teixeira
 Sent: Saturday, 23 July 2005 3:25 AM
 To: Hubert FONGARNAND
 Cc: mono-devel-list@lists.ximian.com
 Subject: Re: [Mono-devel-list] gtk ComboBox questions...
 
 Stop Nonsense!!!
 
 Hubert, Just call the proper method:
 
 int count = myComboBox.Model.IterNChildren();
 
 :)
 
 On 7/22/05, Hubert FONGARNAND [EMAIL PROTECTED] wrote:
 
 
  --  Message transmis  --
 
  Subject: Re: [Mono-devel-list] gtk ComboBox questions...
  Date: Vendredi 22 Juillet 2005 14:14
  From: Hubert FONGARNAND [EMAIL PROTECTED]
  To: Mikkel Kruse Johnsen [EMAIL PROTECTED]
 
  Le Vendredi 22 Juillet 2005 12:35, vous avez écrit:
   Hi Hubert
  
   The ComboBox is using a TreeModel to represent the rows. So look at
   TreeModel (TreeStore or ListStore) for info.
   http://www.go-mono.com/docs/ http://www.go-mono.com/docs/
  
   To clean up all entries in a combobox...:
  
   TreeStore store = (TreeStore)combo.Model;
   store.Clear();
  
   Count the entries I don't know if there is a function for that, else you
   have to loop through the rows like this:
  
  
   TreeStore model = (TreeStore)combo.Model;
 
  I cannot cast a treemodel into a tree store...
  i got :
  Unhandled Exception: System.InvalidCastException: Cannot cast from source
   type to destination type.
  when i do :
  TreeStore store=(TreeStore)drpCivilite.Model;
 
   TreeIter iter   = new TreeIter();
  
   int count = 0;
   bool res = model.GetIterFirst(out iter);
   while(res)  {
   count++;
   res = model.IterNext(ref iter);
   }
  
   /Mikkel
  
   On Fri, 2005-07-22 at 09:55 +0200, Hubert FONGARNAND wrote:
  
  
  
   I'm new to Gtk# and I can't find any help on MonoDoc with the ComboBox
   widget
  
   (not the old Combo Widget)
  
  
  
   Does someone know how to :
  
   Clean up all entries in a combobox...
  
   Count the number of entries in the combobox
  
  
  
   thanks in advance...
  
  
  
   ___
  
   Ce message et les ventuels documents joints peuvent contenir des
   informations confidentielles.
  
   Au cas o il ne vous serait pas destin, nous vous remercions de bien
   vouloir le supprimer et en aviser immdiatement l'expditeur. Toute
   utilisation de ce message non conforme  sa destination, toute diffusion
   ou publication, totale ou partielle et quel qu'en soit le moyen est
   formellement interdite.
  
   Les communications sur internet n'tant pas scurises, l'intgrit de ce
   message n'est pas assure et la socit mettrice ne peut tre tenue pour
   responsable de son contenu.
  
   ___
  
   Mono-devel-list mailing list
  
   Mono-devel-list@lists.ximian.com
   mailto:Mono-devel-list@lists.ximian.com
  
   http://lists.ximian.com/mailman/listinfo/mono-devel-list
   http://lists.ximian.com/mailman/listinfo/mono-devel-list
 
  ---
 
  ___
  Ce message et les éventuels documents joints peuvent contenir des 
  informations confidentielles.
  Au cas où il ne vous serait pas destiné, nous vous remercions de bien 
  vouloir le supprimer et en aviser immédiatement l'expéditeur. Toute 
  utilisation de ce message non conforme à sa destination, toute diffusion ou 
  publication, totale ou partielle et quel qu'en soit le moyen est 
  formellement interdite.
  Les communications sur internet n'étant pas sécurisées, l'intégrité de ce 
  message n'est pas assurée et la société émettrice ne peut être tenue pour 
  responsable de son contenu.
  ___
  Mono-devel-list mailing list
  Mono-devel-list@lists.ximian.com
  http://lists.ximian.com/mailman/listinfo/mono-devel-list

Re: [Mono-devel-list] DllNotFoundException

2005-07-25 Thread Rafael Teixeira
Again seems like someone didn't install gtk-sharp properly, with the
.dll.config files...

See http://www.mono-project.com/Interop_with_Native_Libraries for some
background.

On 7/24/05, Helge Kruse [EMAIL PROTECTED] wrote:
 Hello,
 I have installed mono 1.2.8.2 with the installer binary. I succeed to run the
 mcs compiler but can neither run monodevelop nor monodoc. The programs throw
 a DllNotFoundException i.e.:
 [EMAIL PROTECTED]:/opt/mono-1.1.8.2/bin monodevelop
 Unhandled Exception: System.DllNotFoundException: gnomesharpglue-2
 
 But the dynamic library is installed by the installer:
 [EMAIL PROTECTED]:/opt/mono-1.1.8.2/lib ls -l libgnomesharpglue-2.so
 -rwxr-xr-x  1 root root 11748 2005-07-06 23:26 libgnomesharpglue-2.so
 
 I have added /opt/mono-1.1.8.2/lib to /etc/ld.so.conf an ran ldconfig (as
 root).
   linux:/etc # ldconfig -p  | grep gnomesharpglue-2
 libgnomesharpglue-2.so (libc6)
  = /opt/mono-1.1.8.2/lib/libgnomesharpglue-2.so
 
 But the exception still occures. How can I make monodevelop and so on running?
 
 /Helge
 
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] Error during Mono-1.1.8.2 installation

2005-07-25 Thread Rafael Teixeira
You are using the /usr/local prefix, and some pieces may have been
installed to the /usr prefix. Choose one for all pieces at
autogen.sh/configure time.

HIH,

On 7/25/05, Sridhar Kulkarni [EMAIL PROTECTED] wrote:
 Hi,
 
 I am trying to install mono-1.1.8-2 on my RedHat 9 m/c. I am getting the
 following error:
 
 Making install in metadata
 make[2]: Entering directory `/home/sridhar/mono/mono-1.1.8.2/mono/metadata'
 make[3]: Entering directory `/home/sridhar/mono/mono-1.1.8.2/mono/metadata'
 test -z /usr/local/bin || mkdir -p -- /usr/local/bin
   /bin/sh ../../libtool --mode=install /usr/bin/install -c 'pedump'
 '/usr/local/bin/pedump'
 /usr/bin/install -c pedump /usr/local/bin/pedump
   /bin/sh ../../libtool --mode=install /usr/bin/install -c 'monodiet'
 '/usr/local/bin/monodiet'
 /usr/bin/install -c monodiet /usr/local/bin/monodiet
 /usr/bin/install: reading `monodiet': Input/output error
 make[3]: *** [install-binPROGRAMS] Error 1
 make[3]: Leaving directory `/home/sridhar/mono/mono-1.1.8.2/mono/metadata'
 make[2]: *** [install-am] Error 2
 make[2]: Leaving directory `/home/sridhar/mono/mono-1.1.8.2/mono/metadata'
 make[1]: *** [install-recursive] Error 1
 make[1]: Leaving directory `/home/sridhar/mono/mono-1.1.8.2/mono'
 make: *** [install-recursive] Error 1
 
 
 I have uninstalled previous version of mono-1.1.7. Anybody any idea?
 
 -Sri
 
 _
 Reach out to over a million NRIs.
 http://www.sulekha.com/classifieds/cllist.aspx?nma=INref=msn Get great
 responses for your ads.
 
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] COM Interop

2005-07-25 Thread Rafael Teixeira
On 7/25/05, Jonathan S. Chambers [EMAIL PROTECTED] wrote:
 I am interested in implementing some support for COM Interop for
 the mono runtime. A goal is that the mono version of COM Interop could
 support various component models (COM, XPCOM, and Bonobo have been
 proposed); whether more than one can be supported at one time is another
 decision that someone will need to make.

I would hope that not to happen, as COM is just more trouble than it
is worth. I prefer to rewrite any COM component as something fully
managed, but yes there are cases (like using OLE Automation to control
omnipresent apps) that we may have to concede. But I personally would
not space for COM to breath.

Alas, you are in the group that may have invested so much on COM, or
depend on OLE Automation or Third-Party ActiveX Components so let's
see what I can help than further discuss the merit of the proposition.

 Component model specific code will not be part of the mono
 runtime, but part of an external library loaded at runtime (as
 requested).

Very good decision. I just don't think Bonobo will fit in nicely as it
is very different from the other two, and from the COM-Interop
premises embedded in .NET.

 A few questions
 
 1. Would the mono runtime be aware of common functionality that exists
 in all (currently proposed) component models; essentially the
 functionality of the Unknown interface (reference counting and interface
 querying)?

I fear you'll have to do that: Just to mimic correctly all the
COM-specific things that the Base Class Library has.

 2. As MS has a base COM object wrapper (__ComObject), I was planning a
 similar one for mono. This wrapper would hold onto the unmanaged object
 pointer and provide additional functionality as required. Does this
 sound ok?

Yes, but you'll need a lot more baggage than this class. Issues with
threading-models and GC x ReferenceCounting clutter this space and are
mapped in this API surface.

 3. I assume some sort of reference counting will take place. For
 simplicity, I was planning on AddRef'ing/Release'ing at every
 interaction. This is different that the MS implementation, I believe.
 For example, (again, I believe) MS keeps track of the IUnknown pointer
 and addref's only once upon entry into the managed runtime. Each
 unmanaged component then seems to be wrapped by only one managed
 wrapper.

The problem is you can't Release freely as it may kill the object
prematurely. I'm not sure but I think the Disposable pattern is used
to control the lifetime of wrapped COM objects a bit better but some
exceptions to the rule may appear.

 4. I assume each unmanaged interfaces will have a corresponding managed
 interface defined and tagged with appropriate attributes. The
 GuidAttribute would work for COM/XPCOM, but Bonobo takes a string for
 its QueryInterface.

Well that is what I said about Bonobo not fitting in. Let's look at
the problem from the developer that will be using it perspective.

Bonobo components are normally totally diverse from similar COM
components, it is hard to imagine having an interface-for-interface
match that would allow you to write a single hosting code to  accept a
COM component and an equivalent Bonobo component. That's is easier
between COM /XPCOM as that was way XPCOM was written in the first
place.

So If I want to write apps that use Bonobo components the most I would
expect is to be able to reuse concepts, and similarly named classes,
but little mor than that.

So probably a BonoboObject (double-underscores aren't really needed in
this case) should be built as a counterpart to the __ComObject that
may be able to deal with COM and XPCOM.

 (Kornel mentioned having additional namespaces under
 System.Runtime.InteropServices, such as
 System.Runtime.InteropServices.Bonobo).

No way. Adding subnamespaces in the ECMA/MS namespaces isn't allowed. 
We can have a Mono.Runtime.InteropServices.Bonobo or a shorter and
appropriate Bonobo namespace.

 Thanks,
 Jonathan
 

Good luck,

-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] On Error

2005-07-26 Thread Rafael Teixeira
We are still working on making On Error runtime support fully
functional. Please register a bugzilla case with more details at:

http://bugzilla.ximian.com/enter_bug.cgi?product=Mono%3A+Class+Librariescomponent=VB+Runtime

Anyway, 

I, personally, recommend you to favor Try-Catch over On Error, always,
as it is more efficient and forces you to better organize/structure
your code.

:)

On 7/26/05, Arnhoffer Károly [EMAIL PROTECTED] wrote:
 Hi all,
 
 I have an MS.NET service application developed in VB.NET and compiled with 
 VisualStudio.NET. I try to run it under Mono (SuSE Linux 9.2 Mono 1.1.8).
 
 When I use On Error statements in the code and an exception occures the whole 
 application crashes: does not run any further. When using Try Catch 
 statements instead of On Error this problem does not happen. Is On Error 
 statement supported in Mono?
 
 Thanks!
 
 Arnhoffer Károly
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] ImageButton inside Repeater doesn't raise ItemCommand event

2005-07-27 Thread Rafael Teixeira
See the first answer in this forum thread:

http://forums.asp.net/941132/ShowPost.aspx

From it, looks like you missed the CommandName attribute in the
asp:ImageButton tag. Without it there nothing to link your button to
some command (you can have many of them in the same template) and so
the event isn't raised.

:)

On 7/26/05, Sébastien Macke [EMAIL PROTECTED] wrote:
 Hi,
 
 I've just noticed that when using an ImageButton inside a Repeater,
 clicking it won't get me into MyRepeaterCommand() function (see the code
 below).
 
 I'm using mono-1.1.8.20050725 nightly.
 
 Is it gonna be a bug?
 
 Source:
 %@ Page Language=C#%
 %@ import Namespace=System.Data %
 script runat=server
 
 public void Page_Load(object sender, EventArgs e)
 {
 InitMyRepeater();
 }
 
 void InitMyRepeater()
 {
 DataTable dt = new DataTable();
 
 dt.Columns.Add(ItemNumber, typeof(string));
 
 for(int i=0; i10; i++)
 {
 dt.Rows.Add( new object[]{Item n° + i.ToString() } );
 }
 
 MyRepeater.DataSource = dt;
 MyRepeater.DataBind();
 }
 
 void MyRepeaterCommand(Object pSender, RepeaterCommandEventArgs pEvent)
 {
 Console.WriteLine(Test);
 }
 
 /script
 
 html
 body
 form runat=server
 asp:Repeater id=MyRepeater OnItemCommand=MyRepeaterCommand
 runat=server
 ItemTemplate
 %# DataBinder.Eval(Container.DataItem, ItemNumber) %
 asp:ImageButton Text=Click Me runat=server/
 /br
 /ItemTemplate
 /asp:Repeater
 /form
 /body
 /html
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] Npgsql breaks multi-line queries

2005-07-28 Thread Rafael Teixeira
I've forwarded your patch to Francisco Jr. that created/maintains
npgsql, as the primary repository for it is at gborg under his
control, and is just synced inside Mono's.

Thanks for spotting that,

:)

On 7/28/05, Jaroslaw Kowalski [EMAIL PROTECTED] wrote:
 Hi!
 
 I found that Npgsql client breaks multi-line queries by removing newline
 characters. This leads to improper sql being sent do postgresql.
 
 The following CommandText
 
 
 select a as b
 from C
 
 
 is sent as select a as bfrom C which is obviously an error because the
 space between b and from is missing. This is because RegExp used to
 filter parameters doesn't use RegexOptions.Singleline option.
 
 I'm attaching a patch against SVN trunk which fixes the problem.
 
 Would anyone care to apply it?
 
 --
 Jaroslaw Kowalski
 http://blog.jkowalski.net/
 http://nlog.sourceforge.net/
 
 
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 
 
 
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] Printing status and reporting engine

2005-08-01 Thread Rafael Teixeira
Well thanks for your project it is surely needed...

cry
Nowadays I'm using specific code over iTextSharp to generate PDF files
and then exec'ing lpr on them, as my reporting solution.
/cry

I don't think anything is actively being developed in the printing classes. 
Neither Gnome-printing is correctly supported by GTK#. 

So that lots of work in the printing support subject is awaiting for
enterprising volunteers...

Could you help us? At least by pointing at bugzilla the not what is
missing (maybe just a task reminding case on the whole subject) but on
how it should be working (some small pieces of code that exercise
things and that work attached to specific cases) so that we can
implement missing things correctly?

Thank you, again 

On 7/30/05, Toni Martir [EMAIL PROTECTED] wrote:
 Resume:
 
 1. Time line for printing implementation classes (StandardPrintController
 mainly)
 2. Your preferences,opinions,use of reporting engine for your applications.
  
 Hello,
 
 I'm the main developer of an opensource reporting engine:
 
 http://reportman.sourceforge.net
 
 I'm in the process of testing a possible port to c#, Mono and Microsoft.Net.
 I implemented few required classes with success:
 - Variant class:with operator overload implemeted (why is it not on standard
 runtime classes?)

In truth there is but it is tyed to specific languages (and their
additional runtime libraries): VB.NET and JScript.NET that has
late-binding and Boo that has duck-typing allow for some
Variant-type functionality. C# is a strict-typing language...

 - Expression evaluator:exp.parser+exp.evaluator with access to dataset
 fields, that is to provide runtime expression evaluation like
 ((PRODUCT.PRICE*(100-ORDER.DISCOUNT)/100*ORDER.QUANTITY))

Cool. AFAIK, JScript.NET also has such embedded evaluator. The BOOI
interpreter for the boo language has some pieces that could have been
reused...
 
 I'm on the process of printing tests, I see status of printing classes is
 about 50%, I tested simple printouts on Linux without success (message
 Document 001.jpg is shown on console and nothing print).

Yes, I think things are mostly stubbed, not really implemented in that space.

 I want to know about implementation plans (timeline?) for printing classes:
 StandardPrintControler
 PrintPreviewDialog (in Winforms).
 I have no information about status of important functions like
 MeasureCharacterRanges.
 
 I'm also interested about mono developers tools, I'm new to mono and don't
 know which reporting engine you use actually, or plans to implement a
 similar tool. I know really few developers using Mono or .Net for desktop
 applications.

As I said, I know no Report Generating tool for Mono. Some people
already expressed the need in the list, but some want a gigantic first
step, like if a tool as-fully-featured-as Crystal Reports or Microsoft
SQL Server Reporting Services, could be built from scratch in some few
weeks.

 Note that some parts of the engine are not really dificult to port, like PDF
 output generation (once I find correct functions for text measurement), and
 maybe really useful for server side applications.

Well I generate PDFs with iTextSharp that is a port of java's iText
(by one of the it's main mantainers). I think it is far from perfect,
but it certainly works.

:)

-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] calling indexer from aspx page written in VB

2005-08-01 Thread Rafael Teixeira
Hi Bobby,

Item is the indexer (default Property) for the class so you CAN omit
it, but I'm not sure why it's not accepting to be explictily called.
Could you fill a bugzilla case about it to organize our search of a
solution.

Thank you

On 8/1/05, Bobby Beckmann [EMAIL PROTECTED] wrote:
 Hi,
 
 I'm trying to port a vb.net asp app over to mono and my first head
 scratcher is why can't I have a line that says:
 
 ?= Session.Item(Test) ?
 
 in my code. The error I get is
 error BC30390: 'System.Web.SessionState.HttpSessionState.Item' is
 inaccessible because of its protection level
 
 I've searched the bug dbs and google, but haven't found anything
 relevant. It does work when I remove the .Item and just do
 Session(Test). Is this a compiler issue or a runtime issue? I
 appreciate any help.
 
 Thanks,
 Bobby
 
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] Internationalisation

2005-08-03 Thread Rafael Teixeira
Hi Paul,

It seems like you didn't embed or link your resources in the
compilation command line, so sure it wouldn't find any resource to
load at run-time... Be sure to include them when compiling.

As you asked about compiling to a winexe target in another email, it
seems like you didn't do your homework on command line options for the
compiler (either csc/mcs).

Homework: go extensively over 'man mcs' and contrast with csc
documentation at msdn.

Well, but now seriously: Most people doesn't have a clue of how many
things the IDEs (VS.NET, SD, MD, XD) do behind the curtain about
compilation, so I think you won't be the last one to ask such
questions, or fumble on basic compilation concepts.

Key rule for begginers: first try 'man', and if 'man' doesn't help
enough 'google' is your handy learning tool...

:)

On 8/2/05, Paul [EMAIL PROTECTED] wrote:
 Hi,
 
 I have a small piece of code (which uses SWF, but the problem is not
 there) below. It compiles fine and runs. However, if I click on the
 Swahili radio button, I get the errors set out beneath the source.
 
 Is internationalisation on the todo list or is this something I need to
 put into bugzilla?
 
 TTFN
 
 Paul
 
 using System;
 using System.Drawing;
 using System.Resources;
 using System.Globalization;
 using System.Windows.Forms;
 
 class International : Form
 {
   ResourceManager rm;
   Label man;
   Label woman;
 
   public International()
   {
 rm = new ResourceManager(typeof(International));
 RadioButton eng = new RadioButton();
 eng.Checked = true;
 eng.Location = new Point(10, 10);
 eng.Text = English;
 eng.CheckedChanged += new EventHandler(LoadUSResources);
 
 RadioButton swa = new RadioButton();
 swa.Location = new Point(10, 30);
 swa.Text = Swahili;
 swa.CheckedChanged += new EventHandler(LoadSwahiliResources);
 
 man = new Label();
 man.Location = new Point(10, 60);
 man.Text = Man;
 
 woman = new Label();
 woman.Location = new Point(10, 90);
 woman.Text = Woman;
 
 Controls.AddRange(new Control[] {eng, swa, man, woman} );
 Text = International;
   }
 
   public void LoadUSResources(object src, EventArgs a)
   {
 if (((RadioButton)src).Checked == true)
 {
   ResourceSet rs = rm.GetResourceSet(new CultureInfo(en-GB), true,
 true);
   SetLabels(rs);
 }
   }
 
   public void LoadSwahiliResources(object src, EventArgs a)
   {
 if (((RadioButton)src).Checked == true)
 {
   ResourceSet rs = rm.GetResourceSet(new CultureInfo(sw), true,
 true);
   SetLabels(rs);
 }
   }
 
   private void SetLabels(ResourceSet rs)
   {
 man.Text = rs.GetString(Man);
 woman.Text = rs.GetString(Woman);
   }
 
   public static void Main()
   {
 Application.Run(new International());
   }
 }
 
 mcs international.cs -r:System.Windows.Forms -r:System.Drawing
 mono international.exe
 
 Unhandled Exception: System.Resources.MissingManifestResourceException:
 Could not find any resource appropiate for the specified culture or its
 parents. Make sure International.resources was correctly embedded or
 linked into assembly international.
 in 0x002ea System.Resources.ResourceManager:InternalGetResourceSet
 (System.Globalization.CultureInfo culture, Boolean Createifnotexists,
 Boolean tryParents)
 in 0x00409 System.Resources.ResourceManager:InternalGetResourceSet
 (System.Globalization.CultureInfo culture, Boolean Createifnotexists,
 Boolean tryParents)
 in 0x0003f System.Resources.ResourceManager:GetResourceSet
 (System.Globalization.CultureInfo culture, Boolean createIfNotExists,
 Boolean tryParents)
 in 0x000b9 International:LoadSwahiliResources (System.Object src,
 System.EventArgs a)
 in (wrapper delegate-invoke)
 System.MulticastDelegate:invoke_void_object_EventArgs
 (object,System.EventArgs)
 in 0x00023 System.Windows.Forms.RadioButton:OnCheckedChanged
 (System.EventArgs e)
 in 0x0003f System.Windows.Forms.RadioButton:set_Checked (Boolean
 value)
 in (wrapper remoting-invoke-with-check)
 System.Windows.Forms.RadioButton:set_Checked (bool)
 in 0x0002f System.Windows.Forms.RadioButton:OnClick (System.EventArgs
 e)
 in 0x00011 System.Windows.Forms.RadioButton:ReceivedFocus
 (System.Object sender, System.EventArgs e)
 in (wrapper delegate-invoke)
 System.MulticastDelegate:invoke_void_object_EventArgs
 (object,System.EventArgs)
 in 0x00023 System.Windows.Forms.Control:OnGotFocus (System.EventArgs
 e)
 in 0x00020 System.Windows.Forms.ButtonBase:OnGotFocus
 (System.EventArgs e)
 in 0x012a9 System.Windows.Forms.Control:WndProc
 (System.Windows.Forms.Message m)
 in 0x00066 System.Windows.Forms.ButtonBase:WndProc
 (System.Windows.Forms.Message m)
 in 0x00014 System.Windows.Forms.Control+ControlNativeWindow:WndProc
 (System.Windows.Forms.Message m)
 in 0x0011b System.Windows.Forms.NativeWindow:WndProc (IntPtr hWnd, Msg
 msg, IntPtr wParam, IntPtr lParam)
 in 0x00016 System.Windows.Forms.XplatUIX11:DispatchMessage
 (System.Windows.Forms.MSG msg)
 in 0x00015 

Re: [Mono-devel-list] Error Building

2005-08-04 Thread Rafael Teixeira
Do you have $prefix/bin at the start of your PATH and $prefix/lib
ldconfig'ed? If not probably the monolite installed there may not be
able to actually run, or some mixed pieces from other installations
are entering the process...

Hope It Helps,

:)

On 8/3/05, Jonathan S. Chambers [EMAIL PROTECTED] wrote:
 I'm trying to do a build from SVN on a new machine (FC4). I got the latest 
 from svn, and then I run the following in the mono directory:
 
 ./autogen --with-preview=yes --prefix=/home/jsc/mono_install
 make get-monolite-latest
 make
 
 I get the following error:
 
 make[5]: Entering directory `/home/cmh/mcs'
 *** The compiler 'mcs' doesn't appear to be usable.
 *** The contents of your 'monolite' directory are out-of-date
 *** You may want to try 'make get-monolite-latest'
 make[5]: *** [do-profile-check] Error 1
 make[5]: Leaving directory `/home/cmh/mcs'
 make[4]: *** [profile-do--basic--all] Error 2
 make[4]: Leaving directory `/home/cmh/mcs'
 make[3]: *** [profiles-do--all] Error 2
 make[3]: Leaving directory `/home/cmh/mcs'
 make[2]: *** [all-local] Error 1
 make[2]: Leaving directory `/home/cmh/mono/runtime'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory `/home/cmh/mono'
 make: *** [all] Error 2
 
 
 Is it because I am trying to install to my home directory? Or is something 
 else wrong?
 
 Thanks,
 Jonathan
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] C or C# and Card Reader

2005-08-04 Thread Rafael Teixeira
For security concerns (virus/trojans/etc.) normally web content isn't
allowed to interoperate with local programs. You must have things
sandboxed to prevent harm to your client system by malicious web
content.

You can approach a need like your from many angles:

-- Create browser component (a Firefox XPCOM/IE ActiveX component),
with a VERY thoughtfully SECURE design (for example requiring ssl
connection (certificate-signed) to just an specific URL to enable
gathering information from the serial) to embed in your page. This
means digitally signing packaging the component to be able to have it
trusted by the browser/system. The page javascript would possibly post
the information gathered by the component to navigate to the new page.
Commentary: A java applet would not be able to talk to the serial port
inside the browser sandboxed VM, so it isn't a choice here.

-- Invert command: Embed the HTML viewer in the client application
that conducts all the operation securely just using the viewer to show
the results.

-- Skip web content altogether: Write a good (GTK#) GUI application
for the whole issue, talking web services with the server.

Clearly mono can be used easily for the last two suggestions, but
currently isn't able to  help implement the first one.

HIH,

:)

On 8/1/05, Alf C Stockton [EMAIL PROTECTED] wrote:
 Would it be possible in a client/server environment, similar to a web
 environment, to create a program on the client that would be called from a web
 page.
 This program would read a serial connected card reader, and have that read 
 data
 passed to the server so that the server could retrieve data based on what was
 passed and return same to the client as a web page.
 
 ---
 
 Regards,
 Alf Stocktonwww.stockton.co.za
 
 Contrary to popular belief, penguins are not the salvation of modern
 technology.  Neither do they throw parties for the urban proletariat.
 
 My email disclaimer can be read at: http://www.stockton.co.za/disclaimer.html
 If you don't have web access, the disclaimer can be mailed to you on request.
 
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] Initial ARM JIT port in svn

2005-08-04 Thread Rafael Teixeira
Perfect timing Lupus, 

I may be able to use C# instead of Java in a new embedded project.

My Heartily Thanks,

On 8/4/05, Paolo Molaro [EMAIL PROTECTED] wrote:
 Hi.
 People may be interested to know that the initial pass at the
 JIT port to ARM is in svn.
 make test in mono/tests reports 123 pass, 70 fail.
 Most of the regression tests in mini/ work as well.
 
 The missing stuff is related to stack walks (so exceptions
 don't work yet, as well as some reflection features) and
 some specialized opcodes. Of course, when mcs will run I'm sure
 more bugs will emerge.
 
 I only tested on my ARM box, running Debian, on an xscale
 processor (v5), in little endian mode, FPA floating point format.
 At this time I'm interested about compilation issues on
 different systems (like with older processor versions, v4 and newer).
 Also, if anyone has a big endian ARM system I would be interested in
 bug reports.
 Soft-float support is planned only for later (and you may speedup
 the process by doing the support yourself or providing me a tarball
 of a complete system compiled with soft-float).
 
 You will need to copy mscorlib.dll, System.dll etc
 and the test programs from another box and install them manually.
 
 Thanks.
 
 lupus
 
 --
 -
 [EMAIL PROTECTED] debian/rules
 [EMAIL PROTECTED] Monkeys do it better
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] Re: Threading model

2005-08-05 Thread Rafael Teixeira
On 8/5/05, Paul [EMAIL PROTECTED] wrote:
  Probably some error on locking/freeing threads is generating this exception
 
 Worth putting into the big scaly one?

If you mean open a bugzilla case it is certainly worth as it meanders
in the Platform Driver code for X before crashing...

Could you do the honors? Your small program, fits nicely as a test case...

:)

-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Doc for odbc

2005-08-10 Thread Rafael Teixeira
That is because interest in the ODBC provider is low, as using
specific providers is much better
(performance/easy-of-use/easy-of-debugging wise).

What server are you using that possibly doesn't have a proper ADO.NET
provider implemented? Currently PostgreSQL, MySQL, Firebase, MS SQL
Server, Oracle and SQLLite providers exist and are maintained, DB2 and
Sybase ones also exist but aren't so actively maintained and I may
have forgotten some others, aside from the commercially available
ones...

:)

On 8/10/05, Alfredo Jose Muela Romero [EMAIL PROTECTED] wrote:
 
 
 Hello,
 
 I've been looking for doc about System.Data.Odbc trough
 http://www.go-mono.com/docs/ and I have found none... I don't
 see this as a bug but I thought it may be useful to say it.
 
 
 
 Regards,
 
 
 
 Alfredo.
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Odbc-Exception-Error

2005-08-14 Thread Rafael Teixeira
Hi Jan,

Have you tried to use the direct ADO.NET provider for PostgreSQL
called NPGSQL? It may help you be more productive and has better
performance and portability.

:)

On 8/13/05, Jan Waiz [EMAIL PROTECTED] wrote:
  
  
 
 Hi Folks, 
 
   
 
 big Trouble in China! J 
 
   
 
 Working with ODBC on a PostgreSQL. 
 
   
 
 While the ODBC did not support named Parameters and to be save about Signs
 like the ' in Textboxes, i am building my Update-Statements like this: 
 
   
 
 cStmnt = UPDATE ComanySTD SET + 
 
   Name1 = ?, 
 
   Name2 = ? 
 
   WHERE PKey = ' + cPKey + ' 
 
   
 
 oCommand.Parameters.Add( @Name1, Textbox_Name1.Text.Trim() ) 
 
 oCommand.Parameters.Add( @Name2, Textbox_Name2.Text.Trim() ) 
 
 oCommand.ExecuteNonQuery() 
 
   
 
 This works fine when starting under Localhost. 
 
   
 
 If running in Mono I get an Error: 
 
   System.Data.Odbc.OdbcException: [unixODBC]Unrecognized C_parameter type in
 copy_statement_with_parameters
  
 When changing the Statement to:
  
 
   
 
 cStmnt = UPDATE ComanySTD SET + 
 
   Name1 =  + Textbox_Name1.Text.Trim()  + , 
 
   Name2 =  + Textbox_Name2.Text.Trim()  + , 
 
   WHERE PKey = ' + cPKey + ' 
 
   
 
 oCommand.ExecuteNonQuery() 
 
   
 
 it works with Mono – but if there is an ' in a Textbox it crashes. So I
 have to escape special Signs manuel. 
 
   
 
 I found one Entry in Google, where one Developer will have the same Problem
 – but there wasn´t any Answers what to do. 
 
   
 
 Someone here who can help me what I have to do? 
 
   
 
 Many Thanks in Advance for any Help !! 
 
   
 
 Regards 
 
 Jan Waiz 
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 
 
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] gtk-sharp: Optional assemblies

2005-08-22 Thread Rafael Teixeira
Hi Steven,

Configure is finding what parts of gtk# CAN be built. When doing
'make' after that, the ones it said 'yes' will be built into managed
libraries that will DEPEND on the native libraries, so if you don't
have them (the native ones) properly installed you WON'T be able to
use the corresponding managed libraries anyway, so unless you intend
to use applications that need them (like MonoDevelop) no prob leaving
then out.

Rephrasing it: it all depends on the applications you are planning to
use or develop, with gtk#. They dictate what optional parts are
needed.

From the looks of it you seem not to support for some commonly
used/usable pieces, like gtkhtml-sharp (needs an specific version of
it, what complicates things a bit) that is used by the monodoc
documentation browser (a version using mozilla's gecko is in the
works) and therefore by the monodevelop IDE. Also gnome-sharp is
commonly used...

Monodevelop, from the top of my mind, also needs vte-sharp to be able
to have an embedded console window.

Hope it helps clarify things,

On 8/22/05, Steven T. Hatton [EMAIL PROTECTED] wrote:
 I'm confuses as to what is meant by Optional assemblies in the gtk-sharp
 build.  If I install the rpms for the listed assemblies, they will show as
 yes, but but I'm not sure what that means.  Are they being built when I
 make gtk-sharp, or is something from the rpms being registered in or copied
 into the final product of the build process?  I've had some conflict problems
 with some of these, and would rather not have anything non-essential
 installed.
 
 Configuration summary
 
* Installation prefix = /home/hattons/opt/org/go-mono
* C# compiler: /home/hattons/opt/org/go-mono/bin/mcs  -define:GTK_SHARP_2_6
 
Optional assemblies included in the build:
 
   * art-sharp.dll: yes
   * gnomevfs-sharp.dll: no
   * gnome-sharp.dll: no
   * glade-sharp.dll: yes
   * rsvg-sharp.dll: no
   * gtkhtml-sharp.dll: no
   * vte-sharp.dll: no
   * gtk-dotnet.dll: yes
 
   NOTE: if any of the above say 'no' you may install the
 corresponding development packages for them, rerun
 autogen.sh to include them in the build.
 
* Documentation build enabled: no
 
 
 Now type `make' to compile
 
 
 --
 Regards,
 Steven
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] [PATCH] Monodoc: Add contribution links to home page

2005-08-22 Thread Rafael Teixeira
Hi Mario,

On 8/22/05, Mario Sopena [EMAIL PROTECTED] wrote:
 
   I'm thinking now in a method to delete contributions and I have two ideas:
   * a delete link at the home page
   * When you are editing a node, a new button called Restore
   * A new Menu entry that pops up a dialog showing a table with your
 contributions that lets you delete them and select which ones do you
 want to upload
 Which one do you think is better? All of them?

I would like to have the last two. 

Rationales:
Restore is less frightening than Delete, but it works better for
changes than for additions so I feel the
The dialog helps filter unintended or not ready contributions (either
changes and additions). I the dialog you'd need to have a way to
Restore/Delete unintended contributions and other to Select those
to be uploaded, as they may yeld different sets.

This dialog, or some other derived from it, may help also in
navigating through the pending contributions (the ones not yet ready
to be uploaded) as the work on them may span many sessions inside the
documentation browser.

Thanks for your hard work,

-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Jit for ARM

2005-08-22 Thread Rafael Teixeira
The ARM port is underway, but only lupus (Paolo Molaro) can tell you
the status of it.

:)

On 8/22/05, Jose Pascual [EMAIL PROTECTED] wrote:
 Hi there,
 
 How to compiling mono/mini, mcs, et all from the scratch for ARM?
 I'd like to test mini for ARM
 I have a debian woking in my ARM920T based board .
 
 good job!!!
 
 best regards
 
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] questions regarding contributing

2005-09-20 Thread Rafael Teixeira
We are trying to follow .NET 2.0 API changes as needed (they are
nearly frozen now as the launch date for it is around November).

Just that 2.0 specifics need to be conditionally compiled only for the
2_0 profile.

So just be sure to have such code surrounded by

#if NET_2_0

#endif // NET_2_0

or added to an existing block delimited as such.

Diffs for such patches may be submitted here or better yet attached to
a corresponding bugzilla case, and should contain a changelog entry,
and ideally unit tests to exercise the added/modified code .

Thanks,

On 9/14/05, Andy Waddell [EMAIL PROTECTED] wrote:
  
  
 
 Sorry if this message get duplicated, but I'm having some trouble posting
 it. 
 
   
 
 Hi all.  
 
   
 
 I work at a start up here in Silicon Valley (http://www.fnfr.com) and I'm
 tasked with getting a subset of our application to run on Mono.  It's all
 being coded in C# using MS Visual Studio 2005 Beta 2 and the development
 team is coding to the 2.0 .NET and making full use of generics, etc.  I have
 an environment set up on Linux with anonymous SVN access so that I can stay
 current.  So far, I've managed to get most of the code I need to compile
 (using gmcs) and my next task will be to get the unit tests up and running
 in some form so that I can verify the runtime behavior.  
 
   
 
 The first set of issues I ran into were pieces of the class library not yet
 in the Mono base, but in the Beta 2 version of .NET 2.0.  In each case I've
 either worked around it in our code by substituting from the 1.0 Framework
 or gone into my local copy of the Mono code and added what we needed.  I
 don't have write access to SVN, so my changes are local for now, but I'd be
 more that happy to contribute them (and our management is supportive of
 this).  So far my additions have been limited to a few trivial items.  For
 example,
 System.Data.SqlTypes.SqlParameterCollection.AddWithValue is
 a new method in 2.0 that was being used in several places in our code base. 
 I got past this by adding: 
 
   
 
 [EMAIL PROTECTED] awaddell]$ cd
 src/mcs/class/System.Data/System.Data.SqlClient 
 
 [EMAIL PROTECTED] System.Data.SqlClient]$ svn diff SqlParameterCollection.cs 
 
 Index: SqlParameterCollection.cs 
 
 ===
 
 --- SqlParameterCollection.cs   (revision 49758) 
 
 +++ SqlParameterCollection.cs   (working copy) 
 
 @@ -258,6 +258,11 @@ 
 
 return Add (new SqlParameter (parameterName,
 sqlDbType, size, sourceColumn)); 
 
 } 
 
   
 
 +   public SqlParameter AddWithValue(string parameterName,
 object value) 
 
 +   { 
 
 +return Add(new SqlParameter(parameterName, value));
 
 +   } 
 
 + 
 
 public 
 
  #if NET_2_0 
 
 override 
 
 [EMAIL PROTECTED] System.Data.SqlClient]$ 
 
   
 
 I've done 4 or 5 other little ones like this, but I'm not sure what the
 policy is regarding the .NET Framework version 2.0 stuff.  Given that the
 code in Beta 2 is subject to change, is there a hesitancy to apply all the
 stuff in Beta 2 to the Mono code base or is it just the case that nobody has
 gotten around to it?  If it's the latter, maybe we can help.  Should I
 request write access to SVN or since my changes are so small, just post them
 to this (or some other) list?  Is there a definitive place to check the
 status of what's done and what's not (other than the source code)?  
 
   
 
 I have some other questions, but this is getting to be a long post already. 
 Any guidance would be greatly appreciated. 
 
   
 
 --andy 
 
   
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 
 
 


-- 
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] RE: Mono website down ?

2005-10-11 Thread Rafael Teixeira
The IP Address is quite surely shared, and so dns-name may redirect to
different web applications.

A possibility is that OS/browser detection remapping is ocurring in
the apache server and something is messed there, or in the front
(firewall/router/loadbalancer) servers that may behave differently
according to the source/route of the request.

Just wild guesses so that someone may find a cure.

Personally, I'm not experiencing any problem accessing here in Brazil
from my FC3-Firefox box.

Regards,

On 10/11/05, Sébastien Robitaille [EMAIL PROTECTED] wrote:
 Thanks. But that does not work...

 64.14.94.162 is the Banshee web site.
 64.14.94.188 is the Novell web site (without css).

 Sébas


 -Message d'origine-
 De: Kornél Pál [mailto:[EMAIL PROTECTED]
 Envoyé: Tuesday, October 11, 2005 9:40 AM
 À: Sébastien Robitaille; mono-devel-list@lists.ximian.com
 Cc: 'Joe Audette'
 Objet: Re: [Mono-dev] RE: Mono website down ?

 www.mono-project.com=64.14.94.162
 www.go-mono.com=64.14.94.188

 Kornél

 - Original Message -
 From: Sébastien Robitaille [EMAIL PROTECTED]
 To: mono-devel-list@lists.ximian.com
 Cc: 'Joe Audette' [EMAIL PROTECTED]
 Sent: Tuesday, October 11, 2005 3:06 PM
 Subject: RE: [Mono-dev] RE: Mono website down ?


 We have the same problem here.
 BTW, I was able to access the mono web site during the weekend from home.

 Can somebody post the mono web page IP address to this list so that if it is
 a DNS problem people can still access it?

 Thanks
 Sébas

 -Message d'origine-
 De : [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] De la part de Joe Audette
 Envoyé : Sunday, October 09, 2005 8:59 AM
 À : mono-devel-list@lists.ximian.com
 Objet : Re: [Mono-dev] RE: Mono website down ?

 I saw this issue yesterday when it was first reported,
 then it seemed to heal itself but today it is back
 again. I'm getting a generic looking Novell site when
 I try to visit the mono project site on either of my
 machines, windows or Suse. I get the same results in
 Firefox or IE

 Joe

 --- Matt Philmon [EMAIL PROTECTED] wrote:

  Let's see if this one posts... My last response is
  apparently waiting on
  approval... Whatever.
 
  I'm seeing the same thing and it's still happening
  as of this evening
  (Saturday). It started sometime on Friday (though
  early-ish). Here's a twist
  though:
 
  Work: Windows 2000 Professional using Firefox 1.5 B2
  AND IE 6.x I cannot
  browse to the Mono site. I get that stripped down
  Novell site instead and
  Monologue is unreachable. This happens the same on
  both browsers.
 
  Home: I have 2 computers. The one running Windows XP
  Professional SP2 has
  the exact same problem as the one at work... Cannot
  get the the mono page...
  Redirected to this Novell thing. HOWEVER, on my
  other PC that runs Ubuntu
  Breezy (development) and Firefox 1.0.7 I get to the
  correct page without
  problem using the same URL. My home network is
  extremely simple... DHCP
  router and cable modem hosts 2 PC's and 2 Tivos.
 
  I've tried everything I can think of to try.
  Something is seriously messed
  up in the configuration of the site. I think it's
  somehow failing to
  recognize Windows OS or something.
 
  Matt Philmon
 
 
  ___
  Mono-devel-list mailing list
  Mono-devel-list@lists.ximian.com
 
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 


 joe_audette [at] yahoo dotcom
 http://www.joeaudette.com
 http://www.mojoportal.com
 ___
 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 mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list



--
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes.
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] [Mono-patches] r52427 - trunk/mcs/mbas

2005-11-01 Thread Rafael Teixeira
Hi Miguel,

The team is already working on it, but there is a test written by
Ritvik (ExpressionLiteralNothingB.vb) that shows this behaviour is
consistent with what vbc does.

I've told Maverson just to explore further to make sure if this
behaviour is affected by Option Strict On (the default, as in the test
source where the directive is omitted, is Off).

Regards,

On 10/31/05, Miguel de Icaza [EMAIL PROTECTED] wrote:
 Hello,

 The code in that revision for UnboxCast looks suspiciously wrong.
 It creates an empty object if child expression leaves a null on the
 stack.

 Also, it would be convenient if you added a test case that showed
 this problem.
 --
 Miguel de Icaza [EMAIL PROTECTED]
 Novell, Inc.
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list



--
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes.
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] [Mono-patches] r52427 - trunk/mcs/mbas

2005-11-02 Thread Rafael Teixeira
Hey Eyal,

The test source is

mcs/mbas/Test/tests/expressions/ExpressionLiteralNothingB.vb

As Maverson kindly educated me, on VB.NET an expression yielding
Nothing (null) stands for an uninitialized instance of a valuetype on
assignment to a variable/field of that type. MS says: The Nothing
keyword represents the default value of any data type, see:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vblr7/html/vakeynothing.asp

Best regards,


On 11/2/05, Eyal Alaluf [EMAIL PROTECTED] wrote:
 Hi, Rafael.

 Can you point me to this test case location? It seems like an issue we 
 haven't sen before
 as well in Grasshoper.

 Thanks, Eyal.

 On Tue, 1 Nov 2005, Rafael Teixeira wrote:

  Date: Tue, 1 Nov 2005 11:55:08 -0200
  From: Rafael Teixeira [EMAIL PROTECTED]
  To: Miguel de Icaza [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED], [EMAIL PROTECTED],
  [EMAIL PROTECTED], Gonzalo Paniagua Javier [EMAIL PROTECTED]
  Subject: Re: [Mono-dev] [Mono-patches] r52427 - trunk/mcs/mbas
 
  Well this is what vbc generates either way:
 
 .locals init (
 valuetype ExpressionLiteralsNothing/MyStructV_0)
 IL_:  ldnull
 IL_0001:  dup
 IL_0002:  brtrue.s IL_0014
 
 IL_0004:  pop
 IL_0005:  ldtoken ExpressionLiteralsNothing/MyStruct
 IL_000a:  call class [mscorlib]System.Type class
  [mscorlib]System.Type::GetTypeFromHandle(valuetype
  [mscorlib]System.RuntimeTypeHandle)
 IL_000f:  call object class
  [mscorlib]System.Activator::CreateInstance(class
  [mscorlib]System.Type)
 IL_0014:  unbox ExpressionLiteralsNothing/MyStruct
 IL_0019:  ldobj ExpressionLiteralsNothing/MyStruct
 IL_001e:  stloc.0
 
  So the struct is synthesized from a null (very non-c#) either way
  (regarding Option Strict). :)
 
  OK?
 
 
  On 11/1/05, Rafael Teixeira [EMAIL PROTECTED] wrote:
  Hi Miguel,
 
  The team is already working on it, but there is a test written by
  Ritvik (ExpressionLiteralNothingB.vb) that shows this behaviour is
  consistent with what vbc does.
 
  I've told Maverson just to explore further to make sure if this
  behaviour is affected by Option Strict On (the default, as in the test
  source where the directive is omitted, is Off).
 
  Regards,
 
  On 10/31/05, Miguel de Icaza [EMAIL PROTECTED] wrote:
  Hello,
 
  The code in that revision for UnboxCast looks suspiciously wrong.
  It creates an empty object if child expression leaves a null on the
  stack.
 
  Also, it would be convenient if you added a test case that showed
  this problem.
  --
  Miguel de Icaza [EMAIL PROTECTED]
  Novell, Inc.
  ___
  Mono-devel-list mailing list
  Mono-devel-list@lists.ximian.com
  http://lists.ximian.com/mailman/listinfo/mono-devel-list
 
 
 
  --
  Rafael Monoman Teixeira
  ---
  I'm trying to become a Rosh Gadol before my own eyes.
  See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
  It hurts!
 
 
 
  --
  Rafael Monoman Teixeira
  ---
  I'm trying to become a Rosh Gadol before my own eyes.
  See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
  It hurts!
  ___
  Mono-devel-list mailing list
  Mono-devel-list@lists.ximian.com
  http://lists.ximian.com/mailman/listinfo/mono-devel-list
 



--
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes.
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Mono with NAnt

2005-11-02 Thread Rafael Teixeira
You may have to tweak NAnt.exe.config to point correctly to your Mono
installation.

:)

On 11/2/05, Kevin Thompson [EMAIL PROTECTED] wrote:
 Hi i have a compilation of mono from SVN and I am trying to get it to work
 with nant.

  When i specify mono-1.0 as the framework it produces an error:
  =
  Invalid framework 'mono-1.0' specified.

  Possible values include:

   net-1.1 (Microsoft .NET Framework 1.1)





  Does any know how i can get nant to work successfully with mono from svn?

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





--
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes.
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] To split or not to split Mono?

2005-11-03 Thread Rafael Teixeira
I think that splitting out anything in the MS-compatible stack will
turn things harder at the user end, we have more control in the other
things to decide a good, or at least reasonable, split.

I would indeed keep everything MS keeps together similarly packed and
released in an apropriate schedule. But would suggest WinForms to have
separately-scheduled superceding updates, as it's API is (or at least
should be) frozen so that only implementation is corrected/added on
each release/update but no breaking API changes need to go into it. I
know you don't like it Miguel, but I would stub WinForms completely to
have it really API-Frozen matching the 1.1 MS API, so that updates can
just be deployed over (as MS Service Packs normally do) existing
assemblies (GAC'ing as needed).

Things that have a floating API like Mono.Posix/Mono.Cairo I agree
that should be split, and I don't see much of problem with that.

My 2 cents,


On 11/3/05, Miguel de Icaza [EMAIL PROTECTED] wrote:
 Hello,

 Today a discussion about including a new library into Mono class
 libraries happened on #mono or #monodev channels.   In the past we have
 been fairly open to bundling more useful libraries as part of the mcs
 module.  But there are a few problems.

 By keeping all of Mono in a single package (runtime, compilers, core
 libraries, GUI libraries, web libraries, database libraries and
 others) it is making our future maintenance of code more difficult.

 See, currently we have various different degrees of maturity in
 Mono: the core is very stable and it mostly gets bug fixes and
 performance fixes.  Other areas (Mono.Posix, Mono.Cairo) are still in
 relatively heavy development and refactoring and some others are still
 fairly incomplete (Windows.Forms).

 When Mono 1.2 comes out, we will have to branch the tree at 1.2, and
 backport all of the fixes from HEAD to the branch on an ongoing basis.
 I have no problem doing this for the core of Mono, but the more active
 areas of Mono will likely be fairly large chunks of code that we would
 have to backport and maintain.

 So am wondering whether we should split mcs/class into various
 packages that can be released independently.  This would minimize the
 branch maintenance pain and means that when we fix a bug in
 Windows.Forms we do not have to re-issue the whole Mono stack.

 Doing the actual split would still require a considerable amount of
 work: not only splitting it, but doing all the build system and
 packaging changes to cope with this.

 I had initially proposed GUI, Server, Database and Core, but
 this is not necessarily a good split.  Database code for example
 requires Windows.Forms to be around.   So maybe we need a different
 split.

 Am not sure if we will split Mono, but if we do, I have already
 chosen the names for the modules: Red, Green, Blue and Yellow.

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



--
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes.
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Monodevelop: Failure to import VS.Net Solution

2005-11-09 Thread Rafael Teixeira
I believe VB.NET Projects support is lagging behind support for other
languages in MD (shame on me as I can't find time to contribute it).
Also ASP.NET projects AFAIK aren't correctly supported yet, either.

Any takers?

Regards,

On 11/9/05, Craig Marshall [EMAIL PROTECTED] wrote:
 Hi,

 I hope this is the right list, I couldn't see anywhere else to post
 monodevelop specific questions.

 I have a VS.Net 2003 solution which is a web app written in vb.net
 code. I am running Ubuntu breezy badger 5.10, and I installed the Mono
 binary installation (.bin file) this morning without a hitch.

 When I try to import my VS.Net solution file (acm2006.sln) into MD, it
 fails and gives me the following error message twice on slightly
 different error dialogs:

 File not found: /home/cmarshall/Web/Registration/acm2006.cmbx

 Also, it doesn't give me any more details when I click details, it
 says No more details available.

 When I create an empty acm2006.cmbx file in an attempt to satisfy the
 error, it complains that the document element is missing, so I guess
 it expects an XML document to exist and to read content from it (as
 opposed to writing to it). But - I was under the impression that cmbx
 is the format for SharpDevelop combine files, why would it be trying
 to read from an SD combine file?

 When I try and import the .vbproj file, it says Can't open file
 /blah/acm2006.vbproj as project. Again, no more details available.

 Does this feature work for anyone else, or do I have a strange
 solution file, or something else entirely?

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



--
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes.
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] CS0006: Cannot find assembly `mgnat.dll'

2005-11-12 Thread Rafael Teixeira
Normally such errors occur when the assembly p/invokes into native
code and the needed native library can't be found.

Set MONO_LOG_LEVEL=debug and MONO_LOG_MASK=dll and run again to
have more detailed information about the way mono is trying to load
your dll.

:)

On 11/12/05, Laurent GUERBY [EMAIL PROTECTED] wrote:
 Hi, I'm trying to get the Ada to C# compiler[1] to work under
 SuSE Linux 9.3 with mono 1.1.10-2.novell.

 Using ilasm and *.il files generated by the A# compiler I'm able
 to create the mgnat.dll assembly:

 $ cat *.il  ada_lib.msil
 $ ilasm /debug /dll /key=$(DLL_DIR)/TestKey.snk /output=mgnat.dll ada_lib.msil
 $ ls -l mgnat.dll
 -rw-r--r--  1 guerby users 973824 2005-11-12 20:29 mgnat.dll

 But then I cannot use it (same directory):

 $ mcs /debug /r:mgnat.dll /t:library /out:mgnatcs.dll ada.cs
 error CS0006: Cannot find assembly `mgnat.dll'
 Log:

 Compilation failed: 1 error(s), 0 warnings
 $ cat ada.cs
 namespace ada {
 }
 $

 Using strace it looks like mcs is opening the mgnat.dll file
 successfully, any idea on what I'm doing wrong? Is there
 a tool to validate mgnat.dll?

 In case the file is needed, it is availble here (970kB):
 http://guerby.org/ftp/mgnat.dll

 Thanks in advance,

 Laurent

 [1] http://www.martincarlisle.com/a_sharp.html
 needs some Makefile editing and file cleaning to work
 as it originally was developped on MS Windows / MS C#

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



--
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes.
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] uClibc

2005-12-09 Thread Rafael Teixeira
Does uClibc support thread local storage (tls)? tls_appdomain is
stored in the tls, and shouldn't be 0x0...

On 12/9/05, Ben Timby [EMAIL PROTECTED] wrote:
 OK, some more info. Digging in with gdb, here is what is happening:

 1. _wapi_collection_int() is called, which starts a new thread with
 pthread_create()

 2. pthread_create() calls clone, clone eventually generates sigsuspend.

 3. the sigusr1_signal_handler() function in mini.c is called.

 4. The signal handler calls mono_jit_info_table_find() passing as the
 first parameter the domain object, this is retrieved by calling
 mono_domain_get().

 5. mono_domain_get() uses GET_APPDOMAIN() macro to get the current
 appdomain, this macro refers to tls_appdomain, this value appears to be
 0x0, which causes the SIGSEGV.

 Can anyone provide some insight into this?

 --
 Ben Timby
 Senior Software Architect
 Helios, LLC
 (p) 317-554-3619
 (f) 317-554-8997
 www.gohelios.com


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






--
Rafael Monoman Teixeira
---
I'm trying to become a Rosh Gadol before my own eyes.
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] WebServices with Mono on ARM / Nokia 770

2005-12-28 Thread Rafael Teixeira
Try to copy the debug-symbol files for the assemblies (.mdb) alongside
them and run mono --debug yourprogram.exe, to see if the stack trace
comes with some usefull information, and post here again.

Fun,

On 12/28/05, marc.bordessoule [EMAIL PROTECTED] wrote:



 Hi,



 C# / mono seems to be a very good solution for programming business
 applications on the Nokia 770

 I try with success some GTK# samples (compile on pc and use on N770)



 (I use the mono-nokia.tgz from
 http://www.mono-project.com/Mono:ARM )



 Now I need WebServices in c# in my N770



 I made a small sample from
 http://www.mono-project.com/Webservices_and_GtkSharp on
 pc/linux with success.

 And I tried it on my Nokia 770 (cf my sample at the end of this mail)



 I added some files it ask for:  System.Web.dll, System.Web.Services.dll,
 System.EnterpriseServices.dll and /usr/local/etc/mono/... files
 (machine.config)



 And finally I get the following error:



 Unhandled Exception: System.NotImplementedException: The requested feature
 is not implemented.

 in 0x0 unknown method

 in 0x0 unknown method



 (I also tried to compile mono (1.1.9 or 1.1.10) in the scratchbox (0.9.8.5)
 without success)





 So, is it possible today to use mono web services in c# on Nokia770?

 What should I do?



 Thanks for your answer,



 Marc.





 //
 --

 My minimum webservice program:

 …

 RemoteWebService ws = new RemoteWebService ();

 string res = ws.Add (firstNumber, secondNumber).ToString ();

 …



 And WSAppProxy.cs (from wsdl.exe)

 //
 --

 //  autogenerated

 //  This code was generated by a tool.

 //  Mono Runtime Version: 1.1.4322.2032



 //  /autogenerated

 //
 --

 namespace GtkWebService {




 [System.Web.Services.WebServiceBinding(Name=RemoteWebServiceSoap,
 Namespace=http://tempuri.org/;)]

 [System.Diagnostics.DebuggerStepThroughAttribute()]


 [System.ComponentModel.DesignerCategoryAttribute(code)]

 public class RemoteWebService :
 System.Web.Services.Protocols.SoapHttpClientProtocol {



 public RemoteWebService() {

 this.Url = http://localhost:8081/index.asmx;;

 }




 [System.Web.Services.Protocols.SoapDocumentMethodAttribute(http://tempuri.org/Add;,
 RequestNamespace=http://tempuri.org/;,
 ResponseNamespace=http://tempuri.org/;,
 ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped,
 Use=System.Web.Services.Description.SoapBindingUse.Literal)]

 public int Add(int firstNumber, int secondNumber) {

 object[] results = this.Invoke(Add, new object[] {

 firstNumber,

 secondNumber});

 return ((int)(results[0]));

 }



 public System.IAsyncResult BeginAdd(int firstNumber, int
 secondNumber, System.AsyncCallback callback, object asyncState) {

 return this.BeginInvoke(Add, new object[] {

 firstNumber,

 secondNumber}, callback, asyncState);

 }



 public int EndAdd(System.IAsyncResult asyncResult) {

 object[] results = this.EndInvoke(asyncResult);

 return ((int)(results[0]));

 }

 }

 }

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





--
Rafael Monoman Teixeira
---
As I'm currently working a lot with Java and even fixing Java VMs
(JamVM/Kaffe) and GNU Classpath code, I think I may partly borrow the
title (Javaman) from my friend Bruno Souza and become the
MonoNJavaMan. Yeah, I may currently be crazier than usual...
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Command Line Dispatcher

2006-01-05 Thread Rafael Teixeira
Mono.GetOptions already knows to deal with booleans and integers,
besides Strings.

Support for subcommands is planned but not currently implemented.

I would like for you to experiment with it, and send comments or even
patches to make it better.

Thanks,

On 1/4/06, Oscar Forero [EMAIL PROTECTED] wrote:
 Hello,

 I am new to the list, and i will like to submit the following Utility
 to your consideration:

 http://forge.novell.com/modules/xfmod/project/?cmdlineparser

 I got tired of all the time writing those big switchs statements or
 using command line parsers that only parse the options but give you
 everything in string values and you are at the end alone with the value
 parsing.

 What i want it is a library that use the latest syntax extensions of C#
 and where i can wrote something like:

 [SupportOperation(PrintName)]
 public class SimpleCommand {

 /// summary
 ///
 /// /summary
 [STAThread]
 public static void Main(string[] Args) {
 // Command line parsing
 CommandLine cm = new CommandLine();
 cm.Configure(typeof(SimpleCommand));

 try {
 cm.Execute(Args);
 }
 catch(InvalidParameterValueException exception)
 {
 cm.PrintUsage();
 Console.WriteLine(exception);
 }
 catch(InvalidParameterException exception) {
 cm.PrintUsage();
 Console.WriteLine(exception);
 }
 
 catch(Novell.Util.CommandLine.InvalidOperationException
 exception) {
 cm.PrintUsage();
 Console.WriteLine(exception);
 }
 catch(Exception exception) {
 Console.WriteLine(exception);
 }
 }


 /// summary
 /// Get settings of iFolderWeb
 /// /summary
 [OperationParameter(n,name,Word)]
 [OperationFlag(q,quiet)]
 public static void OnPrintName(string name, bool quiet) {
 try {
 if(!quiet) {
 Console.Write(Your name is );
 }
 Console.WriteLine(name);
 }
 catch (Exception e) {
 if(!quiet) {
 Console.Error.WriteLine(Error:
 {0}, e.Message);
 }
 Environment.Exit(-1);
 }
 }
 }

 If you see I did not want to dispatch the messages my self, and i want
 to get the right type for every parameter and not a generic array of
 strings or objects.

 Please take a look of the code present, in order to achieve this
 functionality i have to generate a Proxy class, this is done by the
 proxy compiler, it just takes an assembly as a parameter, after that the
 application is ready to run.

 Feedback is appreciated, positive and negative; also i will like to
 know what is missing to be useful for you guys ...

 regards,

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



--
Rafael Monoman Teixeira
---
As I'm currently working a lot with Java and even fixing Java VMs
(JamVM/Kaffe) and GNU Classpath code, I think I may partly borrow the
title (Javaman) from my friend Bruno Souza and become the
MonoNJavaMan. Yeah, I may currently be crazier than usual...
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Firebird embedded on Linux and Remoting

2006-01-11 Thread Rafael Teixeira
A start is here
http://www.mono-project.com/Embedding_Mono#Applications_that_use_threads
, but I defer to people that really knows about it to really clarify
what can be done.

:|

On 1/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


 Hi,

  Is you somehow registering libfbembed-created threads with Mono, if
  not, surely it is headed to big problems.

 :-O

 No... Sorry if the question is obvious but... How can I do that?


 - Original Message -
 From: Rafael Teixeira [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Cc: mono-devel mono-devel-list@lists.ximian.com
 Sent: Wednesday, January 11, 2006 1:27 PM
 Subject: Re: [Mono-dev] Firebird embedded on Linux and Remoting


  Never used firebird embedded but from the look of it, the big question is:
 
  Is you somehow registering libfbembed-created threads with Mono, if
  not, surely it is headed to big problems.
 
  Fun,
 
  On 1/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  Hi,
 
  We are using (evaluating) Firebird embedded in our application.
 
  It works correctly on Windows even under heay load.
 
  But on Linux as soon as two clients connects to the server (with
  remoting)
  it crashes (even just doing read operations on the database). It seems
  the
  crash is somewhere in libfbembed.
 
  We changed to Firebird Super Server (not embedded) and everything seems
  to
  work.
 
  So, I would like to know if anybody in the list is using firebird
  embedded
  on linux and whether they are having problems...
 
  thanks,
 
  pablo
 
  ___
  Mono-devel-list mailing list
  Mono-devel-list@lists.ximian.com
  http://lists.ximian.com/mailman/listinfo/mono-devel-list
 
 
 
  --
  Rafael Monoman Teixeira
  ---
  As I'm currently working a lot with Java and even fixing Java VMs
  (JamVM/Kaffe) and GNU Classpath code, I think I may partly borrow the
  title (Javaman) from my friend Bruno Souza and become the
  MonoNJavaMan. Yeah, I may currently be crazier than usual...
 




--
Rafael Monoman Teixeira
---
As I'm currently working a lot with Java and even fixing Java VMs
(JamVM/Kaffe) and GNU Classpath code, I think I may partly borrow the
title (Javaman) from my friend Bruno Souza and become the
MonoNJavaMan. Yeah, I may currently be crazier than usual...
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Re: [mono-vb] RE: Microsoft.VisualBasic.VBCodeProvider.CreateCompiler.CompileAssemblyFromSource commandline options

2006-02-14 Thread Rafael Teixeira
Using what is working for CSharp, I fixed it and some other bits:

2006-02-14  Rafael Teixeira [EMAIL PROTECTED]
* VBCodeCompiler.cs:
use mbas.exe from 1.0 or 2.0, depending on NET_2_0
BuildArgs()
copy options.CompilerOptions to the resulting
command line  (as pointed by Arnhoffer Károly)
use Append instead of AppendFormat when possible

==
Would you like to continue (Y)es/(N)o/(E)dit Message:  y
Comitting...
SendingMicrosoft.VisualBasic/ChangeLog
SendingMicrosoft.VisualBasic/VBCodeCompiler.cs
Transmitting file data ..
Committed revision 56849.



On 2/14/06, Arnhoffer Károly [EMAIL PROTECTED] wrote:
 I have to note that the solution I previously adviced is bad (I tried it at 
 my site). Temporarily I have patched for myself as follows (and it is working 
 fine for me):

 static string BuildArgs (CompilerParameters options, string[] 
 fileNames)
 {
 
 // add standard import to Microsoft.VisualBasic if 
 missing
 if (!Reference2MSVBFound)
 args.AppendFormat (/r:\{0}\ , 
 Microsoft.VisualBasic);

 args.AppendFormat ({0}, options.CompilerOptions);

 args.AppendFormat ( -- ); // makes mbas not try to 
 process filenames as options

 foreach (string source in fileNames)
 args.AppendFormat (\{0}\ , source);

 return args.ToString ();
 }

 -Original Message-
 From: Rafael Teixeira [mailto:[EMAIL PROTECTED]
 Sent: Monday, February 13, 2006 8:08 PM
 To: Arnhoffer Károly
 Cc: mono vb; mono-devel-list@lists.ximian.com
 Subject: Re: [mono-vb] RE: 
 Microsoft.VisualBasic.VBCodeProvider.CreateCompiler.CompileAssemblyFromSource 
 commandline options


 Looks like it. I'll try to fix it tomorrow.

 Thanks for the catch,

 On 2/13/06, Arnhoffer Károly [EMAIL PROTECTED] wrote:
  As I can see in
  mcs/class/System/Microsoft.VisualBasic/VBCodeCompiler.cs
  CompilerParameters.CompilerOptions are never added to the command line
  arguments. For example BuildArgs now:
 
  static string BuildArgs (CompilerParameters options, 
  string[] fileNames)
  {
  ...
  return args.ToString ();
  }
 
  But it should be something like this:
 
  static string BuildArgs (CompilerParameters options, 
  string[] fileNames)
  {
  ...
  return args.ToString () + options.CompilerOptions;
  }
 
  Am I right?
  -Original Message-
  From: Arnhoffer Károly
  Sent: Monday, February 13, 2006 9:03 AM
  To: mono vb; mono-devel-list@lists.ximian.com
  Subject:
  Microsoft.VisualBasic.VBCodeProvider.CreateCompiler.CompileAssemblyFro
  mSource commandline options
 
 
  Hi,
 
  I use
  Microsoft.VisualBasic.VBCodeProvider.CreateCompiler.CompileAssemblyFro
  mSource to compile a code snippet at runtime. There is a compilation
  error and first I want to se what the command is that does the
  compilation. Is it possible to see the full command? With Windows and
  .Net there is a file (.cmdline) which contains all the parameters that
  are passed to the vbc.exe. Is there something like this with Mono?
 
  Thanks!
 
  Károly
 
  ___
  Mono-vb mailing list
  Mono-vb@lists.ximian.com
  http://lists.ximian.com/mailman/listinfo/mono-vb
 


 --
 Rafael Monoman Teixeira
 ---
 As I'm currently working a lot with Java and even fixing Java VMs
 (JamVM/Kaffe) and GNU Classpath code, I think I may partly borrow the title 
 (Javaman) from my friend Bruno Souza and become the MonoNJavaMan. Yeah, I may 
 currently be crazier than usual...



--
Rafael Monoman Teixeira
---
As I'm currently working a lot with Java and even fixing Java VMs
(JamVM/Kaffe) and GNU Classpath code, I think I may partly borrow the
title (Javaman) from my friend Bruno Souza and become the
MonoNJavaMan. Yeah, I may currently be crazier than usual...
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Unloading an Assembly

2006-02-28 Thread Rafael Teixeira
AFAIK, ShadowCopyFiles isn't implemented yet in Mono.

:|

On 2/27/06, vijaya raghava mutharaju [EMAIL PROTECTED] wrote:
 Hi,

  I was going through an MSDN article by Eric Gunnerson. He
 says that if we want the runtime to probe for the assembly in any
 other location then we should setup the ApplicationBase property of
 AppDomainSetup class.By default, runtime will lock that assembly. So
 we have to set the ShadowCopyFiles property to true so that the
 assembly is copied to a cache  opened. There won't be any lock now.
 Here is the link for that article.

 
 http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp05162002.asp


 But even after doing all this, still it is giving the same exception.
 The explanation is good and seems relevant to my application. Iam not
 able to understand what went wrong ?

  Please help me. Thank you.
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list



--
Rafael Monoman Teixeira
---
As I'm currently working a lot with Java and even fixing Java VMs
(JamVM/Kaffe) and GNU Classpath code, I think I may partly borrow the
title (Javaman) from my friend Bruno Souza and become the
MonoNJavaMan. Yeah, I may currently be crazier than usual...
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] UserControl type cast issue

2006-03-13 Thread Rafael Teixeira
Did you put the directive on the ascx, to have it inherit from your
class MyControl?
If not the created control descend from Control and can't be cast to a
MyControl.

Remember that the source for a new class is created from the xml/html
in the ascx/aspx file in ASP.NET 1.x. That class is compiled and is an
instance of it that is running in your page. If you don't instruct the
parser to generate a source with the right inheritance it doesn't have
a way to know it.

Regards,


On 3/13/06, Slava Petrenko [EMAIL PROTECTED] wrote:
 Hi all,

 I have such a piece of code:

 class MyControl : UserControl
 {
.
 }


 class MyPage : Page
 {
 private void Page_Load(...)
 {
MyControl control = ( MyControl ) LoadControl( mycontrol.ascx );
 }
 }


 At line MyControl control = ( MyControl ) LoadControl( mycontrol.ascx );

 I get an error Cannot cast from source type to destination type
 I refered to MSDN - such a conversion is correct (they got a simulair
 sample to the code above), any suggestion?


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



--
Rafael Monoman Teixeira
---
As I'm currently working a lot with Java and even fixing Java VMs
(JamVM/Kaffe) and GNU Classpath code, I think I may partly borrow the
title (Javaman) from my friend Bruno Souza and become the
MonoNJavaMan. Yeah, I may currently be crazier than usual...
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Running mono on RHELv3

2006-03-17 Thread Rafael Teixeira
It is the old problem of dates in SOAP xml doesn't being serialized as
needed to prevent time zone misinterpretation in the server or client.
If you can adjust the timezone in the server or the client to match
the other end, the problem may disappear but that is not truly a
solution.

The TimeZone drifting always occur, but the exception only should
occur when a uninitialized DateTime is sent so that the timezone
adjustment make it go beyond the valid range. It may be a failure on
the Vault code to allow for transmitting an uninitialized DateTime,
they can correct the situation by either avoiding it or forcing  an
alternate serialization format (I normally send ticks instead).

Hope it helps,

On 3/17/06, Hafsa Subhan [EMAIL PROTECTED] wrote:
  Hi
  One of out customers is using mono to run Vault on Red Hat Enterprise Linux
 version 3. On running this command  (which is setting a working folder for a
 repository folder in database)

  usr/bin/mono /usr/local/Vault/vault.exe setworkingfolder -repository
 Accipiter \$/project_dir/ /system_dir

  It is displaying an Argument out of range error message shown below. Can
 you tell what could be causing this error?

  vault
  error
  Argument is out of range.
  /error
  exception
  System.ArgumentOutOfRangeException: Argument is out of
 range.
  in 0x0010a System.DateTime:AddTicks (Int64 t)
  in 0x00029 System.DateTime:Add (TimeSpan ts)
  in 0x0015d System.TimeZone:ToLocalTime (DateTime time)
  in 0x00038 System.DateTime:ToLocalTime ()
  in 0x01779 System.DateTime:_DoParse (System.String s, System.String
 format, Boolean exact, System.DateTime result,
 System.Globalization.DateTimeFormatInfo dfi, DateTimeStyles
 style, System.Boolean longYear)
  in 0x00045 System.DateTime:ParseExact (System.String s, System.String[]
 formats, System.Globalization.DateTimeFormatInfo dfi,
 DateTimeStyles style, System.DateTime ret, Boolean exact, System.Boolean
 longYear)
  in 0x00066 System.DateTime:ParseExact (System.String s, System.String[]
 formats, IFormatProvider fp, DateTimeStyles style)
  in 0x0002c System.Xml.XmlConvert:ToDateTime
 (System.String s, System.String[] formats)
  in 0x00016 System.Xml.XmlConvert:ToDateTime
 (System.String s)
  in 0x000e3
 System.Xml.Serialization.XmlCustomFormatter:FromXmlString
 (System.Xml.Serialization.TypeData type, System.String
 value)
  in 0x00082
 System.Xml.Serialization.XmlSerializationReaderInterpreter:GetValueFromX
 mlString (System.String value,
 System.Xml.Serialization.TypeData typeData,
 System.Xml.Serialization.XmlTypeMapping typeMap)
  in 0x000f7
 System.Xml.Serialization.XmlSerializationReaderInterpreter:ReadPrimitive
 Value (System.Xml.Serialization.XmlTypeMapElementInfo elem)
  in 0x00074
 System.Xml.Serialization.XmlSerializationReaderInterpreter:ReadObjectEle
 ment (System.Xml.Serialization.XmlTypeMapElementInfo elem)
  in 0x01e04
 System.Xml.Serialization.XmlSerializationReaderInterpreter:ReadMembers
 (System.Xml.Serialization.ClassMap map, System.Object ob,
 Boolean isValueList, Boolean readByOrder)
  in 0x0003c
 System.Xml.Serialization.XmlSerializationReaderInterpreter:ReadClassInst
 anceMembers (System.Xml.Serialization.XmlTypeMapping
 typeMap, System.Object ob)
  in 0x00194
 System.Xml.Serialization.XmlSerializationReaderInterpreter:ReadClassInst
 ance (System.Xml.Serialization.XmlTypeMapping typeMap,
 Boolean isNullable, Boolean checkType)
  in 0x0005f
 System.Xml.Serialization.XmlSerializationReaderInterpreter:ReadObject
 (System.Xml.Serialization.XmlTypeMapping typeMap, Boolean
 isNullable, Boolean checkType)
  in 0x000e1
 System.Xml.Serialization.XmlSerializationReaderInterpreter:ReadObjectEle
 ment (System.Xml.Serialization.XmlTypeMapElementInfo elem)
  in 0x01e04
 System.Xml.Serialization.XmlSerializationReaderInterpreter:ReadMembers
 (System.Xml.Serialization.ClassMap map, System.Object ob,
 Boolean isValueList, Boolean readByOrder)
  in 0x0003c
 System.Xml.Serialization.XmlSerializationReaderInterpreter:ReadClassInst
 anceMembers (System.Xml.Serialization.XmlTypeMapping
 typeMap, System.Object ob)
  in 0x00194
 System.Xml.Serialization.XmlSerializationReaderInterpreter:ReadClassInst
 ance (System.Xml.Serialization.XmlTypeMapping typeMap,
 Boolean isNullable, Boolean checkType)
  in 0x0005f
 System.Xml.Serialization.XmlSerializationReaderInterpreter:ReadObject
 (System.Xml.Serialization.XmlTypeMapping typeMap, Boolean
 isNullable, Boolean checkType)
  in 0x000e1
 System.Xml.Serialization.XmlSerializationReaderInterpreter:ReadObjectEle
 ment (System.Xml.Serialization.XmlTypeMapElementInfo elem)
  in 0x01e04
 System.Xml.Serialization.XmlSerializationReaderInterpreter:ReadMembers
 (System.Xml.Serialization.ClassMap map, System.Object ob,
 Boolean isValueList, Boolean readByOrder)
  in 0x001d4
 System.Xml.Serialization.XmlSerializationReaderInterpreter:ReadMessage
 (System.Xml.Serialization.XmlMembersMapping typeMap)
  in 0x000c6
 System.Xml.Serialization.XmlSerializationReaderInterpreter:ReadRoot
 ()
  in 

Re: [Mono-dev] embedding C, AppDomain.CurrentDomain.SetupInformation.ApplicationBase

2006-03-24 Thread Rafael Teixeira
In .NET config files exist only for Managed EXEs, not Managed
Libraries. Mono implements config files for libraries only to allow
native library remapping on P/Invoke.

Your C program have to call lots of managed methods to emulate a
Managed EXE, to be able to access a config file (for the program) from
your managed library.

If I were you I would look at the code (mostly managed I think) that
calls some supporting classes BEFORE entering the main entry-point of
a managed EXE.

:)

On 3/23/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hello,
  I continue with my config problems ...
 Situation:
 a)C executable calls c# dll:
 method = mono_class_get_method_from_name(getAppBase(),
 ..)
 mono_runtime_invoke(method,...);

 b) In C# DLL I access
 AppDomain.CurrentDomain.SetupInformation.ApplicationBase:
 public static string getAppBase() {
 return ...ApolicationBase;
 }

 Problem: returned value is NULL.

 When I call from C a C# EXE using mono_jit_exec(...)
 it probably initializates C# assembly and ..ApplicationBase is correct.

 Is there any function in embedding api, which would initilizates an dll
 assembly?
 This problem also correspond with my previous post about AppSettings, which
 is not also initializated in situation desribed above.

 JV


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





--
Rafael Monoman Teixeira
---
As I'm currently working a lot with Java and even fixing Java VMs
(JamVM/Kaffe) and GNU Classpath code, I think I may partly borrow the
title (Javaman) from my friend Bruno Souza and become the
MonoNJavaMan. Yeah, I may currently be crazier than usual...
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] problems with simple windows form under ubuntu breezy

2006-03-26 Thread Rafael Teixeira
Probably is a chained dependency, libgtk-x11-2.0.so, depends on lots
of other native libs and some may be missing.

Use

   export MONO_LOG_LEVEL=debug
   export MONO_LOG_MASK=dll

before running your program to have a more detailed log for the error.

Reading the man page for mono where such information is available, is
a good thing to do in such situations.

:)

On 3/24/06, Wade Maxfield [EMAIL PROTECTED] wrote:

Hello.  I've got a weird error mix running a simple windows form under
 mono 1.1.13, ubuntu.

Basically, I kept getting errors until I ran ldconfig -p and the errors
 mysteriously went away.  It still complains about a missing library that
 ldconfig finds just fine.

 I went to  the mailing list and searched for the error.  I went to the
 mono web page concerning the missing dll and checked everything on the list.
  I don't understand this.

 Any Idea why mono should suddenly work?  Any idea why it can't see the
 library I DO have installed?

  thanks,
  wade




 [EMAIL PROTECTED]:~/.xdevelop/projects/RemoteDSP/RemoteDSP/bin/Debug$
 mono RemoteDSP.exe
  Mono System.Windows.Forms Assembly [Revision: 54007; built: 2005/12/6
 14:35:24]
  Keyboard: United States keyboard layout (phantom key version)
  Gtk not found (missing LD_LIBRARY_PATH to libgtk-x11-2.0.so?), using
 built-in colorscheme

 =
  Got a SIGSEGV while executing native code. This usually indicates
  a fatal error in the mono runtime or one of the native libraries
  used by your application.
 =

  Stacktrace:

  in 0x System.Drawing.FontFamily:refreshName ()
  in 0x4a System.Drawing.FontFamily:refreshName ()
  in 0x20 System.Drawing.FontFamily:.ctor (intptr)
  in 0xff5c (wrapper remoting-invoke-with-check)
 System.Drawing.FontFamily:.ctor (intptr)
  in 0x44 System.Drawing.FontFamily:get_GenericSansSerif
 ()
  in 0x65 System.Windows.Forms.ThemeWin32Classic:.ctor ()
  in 0xf8 System.Windows.Forms.ThemeEngine:.cctor ()
  in 0x50c70dc3 (wrapper runtime-invoke)
 System.Object:runtime_invoke_void
 (object,intptr,intptr,intptr)
  in 0x
 System.Windows.Forms.Control:get_DefaultFont ()
  in 0xb System.Windows.Forms.Control:get_DefaultFont ()
  in 0x55 System.Windows.Forms.Control:get_Font ()
  in 0x2e System.Windows.Forms.Form:.ctor ()
  in 0x4b RemoteDSP.MainForm:.ctor ()
  in 0x716d63 (wrapper remoting-invoke-with-check) RemoteDSP.MainForm:.ctor
 ()
  in 0x43 RemoteDSP.Program:Main (string[])
  in 0x50c72639 (wrapper runtime-invoke)
 System.Object:runtime_invoke_void_string[]
 (object,intptr,intptr,intptr)

  Native stacktrace:

  mono(mono_handle_native_sigsegv+0x7c) [0x81488dc]
  mono [0x811905b]
  [0xe440]
  /lib/tls/i686/cmov/libc.so.6(calloc+0xd6)
 [0xb7d55106]
  /usr/lib/libglib-2.0.so.0(g_malloc0+0x38) [0xb7e9af7e]
  mono(mono_bitset_new+0x2a) [0x810159a]
  mono(mono_analyze_liveness+0x127) [0x8139d07]
  mono [0x813272a]
  mono [0x8133b97]
  mono [0x81339a1]
  mono(mono_magic_trampoline+0x12) [0x8149a22]
  [0xb7b97032]
  [0xb6d4ba09]
  [0xb6d4b9ba]
  [0xb6d4b8ed]
  [0xb6d4a5fe]
  [0xb6d49eb1]
  [0xb745c82e]
  mono(mono_runtime_class_init+0x10c) [0x80cd5cc]
  mono [0x8133cb6]
  mono(mono_magic_trampoline+0x12) [0x8149a22]
  [0xb7b97032]
  [0xb6d489f6]
  [0xb6d461a7]
  [0xb6d45aac]
  [0xb6d45a32]
  [0xb745c774]
  [0xb745b823]
  mono(mono_runtime_exec_main+0x52) [0x80cde32]
  mono(mono_runtime_run_main+0x12f) [0x80d09ef]
  mono(mono_main+0xeef) [0x805d65f]

 /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xd2)
 [0xb7d04ea2]
  mono [0x805c211]
  Aborted
 [EMAIL PROTECTED]:~/.xdevelop/projects/RemoteDSP/RemoteDSP/bin/Debug$
 ldconfig -p | grep libgt*
  libguilereadline-v-12.so.12 (libc6) =
 /usr/lib/libguilereadline-v-12.so.12
  libguile.so.12 (libc6) = /usr/lib/libguile.so.12
  libguile-srfi-srfi-13-14-v-1.so.1 (libc6) =
 /usr/lib/libguile-srfi-srfi-13-14-v-1.so.1
  libguile-srfi-srfi-4-v-1.so.1 (libc6) =
 /usr/lib/libguile-srfi-srfi-4-v-1.so.1
  libguile-ltdl.so.1 (libc6) = /usr/lib/libguile-ltdl.so.1
  libgucharmap.so.4 (libc6) = /usr/lib/libgucharmap.so.4
  libgtop-2.0.so.5 (libc6) = /usr/lib/libgtop-2.0.so.5
  libgtkspell.so.0 (libc6) = /usr/lib/libgtkspell.so.0
  libgtksourceview-1.0.so.0 (libc6) =
 /usr/lib/libgtksourceview-1.0.so.0
  libgtksharpglue.so (libc6) = /usr/lib/libgtksharpglue.so
  libgtksharpglue-2.so (libc6) = /usr/lib/libgtksharpglue-2.so
  libgtkhtml-3.8.so.15 (libc6) = /usr/lib/libgtkhtml-3.8.so.15
  libgtkhtml-2.so.0 (libc6) = /usr/lib/libgtkhtml-2.so.0
  libgtk-x11-2.0.so.0 (libc6) = 

Re: [Mono-dev] Questions about --profile=default:time

2006-03-26 Thread Rafael Teixeira
Hi Jacob,

On 3/24/06, Jacob Ilsø Christensen [EMAIL PROTECTED] wrote:
 Hi.

 I have a few questions about the --profile=default:time in mono. I
 have this program:

 
 using System.Threading;

 public class C
 {
 public static void Main()
 {
 AMethod();
 BMethod();
 }

 public static void AMethod()
 {
 Thread.Sleep(1000);
 }

 public static void BMethod()
 {
 Thread.Sleep(500);
 }
 }
 

 This gives the attached profiler output. Among others these things puzzle me:

 * In:  3.409   31.136   System.Object::runtime_invoke... why
 does the profiler output a count of 3 when the lines below show 2
 calls? Is this due to the extra invocation show further up in the
 file?

Sure, a profiler counts a method each time it enters it, on any
instance or statically.

 * In: 1503.045   2  751.523
 System.Threading.Thread::Sleep(int) AMethod actually spends around
 1000 ms and BMethod 500 ms. What is the purpose of outputting 751.523
 as an average when the two methods do not share the time but just the
 number of calls?

Well most profilers just agregate results, as that consumes less
memory and time and is generally more useful for optimization
purposes. A profiler I wrote on for VB6,  in another life, collected
the raw data and post-processed to give chained averages, like how was
the average of the Sleep call inside AMethod and inside BMethod, but
that took a lot of post-processing and yielded a much larger set of
results to try to figure out where the bottlenecks are.

See that in that case, it is easier to simply use our minds and deduce
that if the mean time of AMethod is a little over 1000ms and BMethod a
little over 500ms, and both call Sleep, both are contributing equally
for the Sleep average. This is a constructed example, and profiling it
has little to add to what reading the code already tell us.

Profiling is really useful when trying to identify bottlenecks on
complex code heavily affected by the data it receives or the
interactions with the user or other pieces of the system. In that
case, averages and standard deviation are good guides to find the
culprits.

Profile MD launch for instance and you'll see how many threads do lots
of things, but some dependencies can't be avoided and thus force
sequential execution. Also some bottlenecks are beyond MD code into
the depths of GTK+ for instance, what makes them harder to overcome.

 Have I just misunderstood something, or is some information missing
 from the profiler output?

As I said, I think you are underestimating the poser of average times,
and the costs of having more detailed data both on producing and on
analizing it.

 /Jacob


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






--
Rafael Monoman Teixeira
---
As I'm currently working a lot with Java and even fixing Java VMs
(JamVM/Kaffe) and GNU Classpath code, I think I may partly borrow the
title (Javaman) from my friend Bruno Souza and become the
MonoNJavaMan. Yeah, I may currently be crazier than usual...
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] What would you like to see in Mono?

2006-03-29 Thread Rafael Teixeira
Just one topic commented, that also adds my personal request.

On 3/29/06, Joe Shaw [EMAIL PROTECTED] wrote:
 Hi,
 And one thing that has always bugged me: my apps all behave strangely
 and then crash when I recompile underneath a running instance.  That's
 very annoying, and I suspect it's also a problem if you upgrade packages
 and an app is running as well.

 Joe


We need to implement shadow copying to allow for changes on running
assemblies (but aside from ASP.NET where it is enabled by default,
even on MS' .NET one need to turn it on explicitly for every AppDomain
that needs it).
That turns on-the-fly updates for plugins, and even whole-apps, a real
possibility.

--
Rafael Monoman Teixeira
---
As I'm currently working a lot with Java and even fixing Java VMs
(JamVM/Kaffe) and GNU Classpath code, I think I may partly borrow the
title (Javaman) from my friend Bruno Souza and become the
MonoNJavaMan. Yeah, I may currently be crazier than usual...
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] CultureInfo not supported

2006-04-03 Thread Rafael Teixeira
Hi, no need to change Mono sources, see inline

On 4/3/06, Ivano Luberti [EMAIL PROTECTED] wrote:
  At 23.36 02/04/2006, Atsushi Eno wrote:

 If you cannot control serialization on the other side, you can't
  do anything but modifying the input XML to strip the culture info.

  Please, can you explain me better ?
  Do you mean I have to modify mono sources ?
  I really don't konow how I can modify the serialization behaviour.


Basically you need to code a SOAP extension, that plugs in the Web
Services .NET pipeline (you can say where, if before or after
serialization/deserialization), and can alter the received XML BEFORE
being wrongly deserialized.

See
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconalteringsoapmessageusingsoapextensions.asp

Google soap extensions in .net for other links on the subject.

:)

--
Rafael Monoman Teixeira
---
As I'm currently working a lot with Java and even fixing Java VMs
(JamVM/Kaffe) and GNU Classpath code, I think I may partly borrow the
title (Javaman) from my friend Bruno Souza and become the
MonoNJavaMan. Yeah, I may currently be crazier than usual...
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] WSE and mono?

2006-04-03 Thread Rafael Teixeira
Well wsrf.net (this text taken literally url sends to some unrelated
asian-language site), seems like an interesting project:

http://www.cs.virginia.edu/~gsw2c/wsrf.net.html

But back to your question

We started coding some WSE 2.0 classes, and stopped because:

1 - 'Indigo' indicates WSE is expected to be short-lived.
2 - WS specs that are the basis of WSE where born polluted with
patents (that is why they [MS, IBM, et al] created them outside W3C)
so it's not really feasible to implement them freely, except it the
few reasonable countries that doesn't accept software patents.

:(

On 4/2/06, sub_line . [EMAIL PROTECTED] wrote:
 hi all,

  i still try to getting work mono with wsrf.net. one of the developer of
 wsrf.net told me that the key is to know how well mono supports the WSE 3.0!
 i've just found on the mono homepage that there was some initial work done
 to support WSE early on and that just a few classes were implemented. does
 anyone know the actual status of  the implementation? does anyone work on
 it?

  thnx, sub_line

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





--
Rafael Monoman Teixeira
---
As I'm currently working a lot with Java and even fixing Java VMs
(JamVM/Kaffe) and GNU Classpath code, I think I may partly borrow the
title (Javaman) from my friend Bruno Souza and become the
MonoNJavaMan. Yeah, I may currently be crazier than usual...
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Can we use Cecil to do the MS.VB.dll fixup currently done with 3 cumbersome steps?

2006-04-07 Thread Rafael Teixeira
JB Evain blogged about the Armand du Plessis, article

http://dotnet.org.za/armand/archive/2006/04/07/51320.aspx

That just describes a way with a short program using Cecil to do the
optional parameters fixup.

I see 2 advantages:

1 - It's simpler and more manageable
2 - probably it won't break debug symbols versioning as currently
occurs with the disassemble-perl-reassemble cycle we currently use.

The only small problem I foresse is to guarantee (by ordering better
the things) that Mono.Cecil and the little utility are available
before trying the ms.vb.dll compilation and fixup.

Thanks a lot JB,

--
Rafael Monoman Teixeira
---
As I'm currently working a lot with Java and even fixing Java VMs
(JamVM/Kaffe) and GNU Classpath code, I think I may partly borrow the
title (Javaman) from my friend Bruno Souza and become the
MonoNJavaMan. Yeah, I may currently be crazier than usual...
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] [PATCH] 2.0 profile version of resgen

2006-04-08 Thread Rafael Teixeira
No need for a mbas2 wrapper as that could confuse people making then
expect VB.NET 8.0 (the one in .NET 2.0) features. I expect mbas to run
with any profile, if that is not the case, I would like to know how to
make it so, to avoid the cited potential confusion.

Cheers,

On 4/8/06, Gert Driesen [EMAIL PROTECTED] wrote:
 Hi,

 The attached patch modifies the Makefile for resgen to support a different
 output assembly for each supported profile, and adds a 'resgen2' wrapper
 script for executing the 2.0 profile version of resgen.

 This change was discussed with Miguel a few weeks ago (see below).

 Are there more changes necessary to get the 2.0 version of resgen and its
 wrapper script in the distribution ?

 Is ok to also create a 2.0 profile versions of mbas, xsd and al ? I would
 submit a separate patch for these ofcourse.

 Gert

  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf
  Of Miguel de Icaza
  Sent: zaterdag 25 maart 2006 22:38
  To: Gert Driesen
  Cc: 'mono-devel mailing list'
  Subject: Re: [Mono-dev] 2.0 profile version of Mono tools ?
 
  Hey,
   This is because resgen is a 1.1 (1.0 profile) assembly
  (which loads some 1.1
   system assemblies) and hence you end with a 1.0 runtime,
  which ofcourse
   can't deal with 2.0 assemblies.
  
   Why not just build all Mono tools in both 1.0 and 2.0
  profile ? Even if the
   source code is exactly the same, you still need these
  profile-specific
   assemblies.
  
   We would then have, for example, a resgen.exe in
  $prefix/lib/mono/1.0 and
   $prefix/lib/mono/2.0. You can then even have a small
  wrapper script (named
   resgen) that executes one of these assemblies based on some
  environment
   variable (MONO_PROFILE) or something.
  
   Isn't this better than having wsdl, wsdl2, wsdl3, ... ?
  
   Any feedback is appreciated ...
 
  Although I like the idea, am not sure how we control the profile.
 
  And I am not sure if we want to do this change with an environment
  variable that would control the executable to run, or if we should do
  this with something at the runtime level.   I think we need to explore
  the various avenues before making a commitment to a particular
  direction.
 
  That being said, I think that an immediate thing to do would be to
  create the scripts and executables for the second profile and
  get those
  on SVN, at least you get a workaround.
 
  A second stage would be to create the new wrapper scripts that would
  invoke one-or-the-other script based on the name.   In this second
  stage, I would probably still want to have tool, tool1 and
  tool2, where
  tool does the default-or-configured invocation;  tool1 is
  always the 1.0
  version and tool2 is always the 2.0 version.
 
  But this should really be a stage 2.   As part of this, we should come
  up with the smallest possible multiplexing script that would invoke
  one or the other.  We should not bloat these scripts as they
  are used a
  lot.
 
  Miguel.
  ___
  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






--
Rafael Monoman Teixeira
---
As I'm currently working a lot with Java and even fixing Java VMs
(JamVM/Kaffe) and GNU Classpath code, I think I may partly borrow the
title (Javaman) from my friend Bruno Souza and become the
MonoNJavaMan. Yeah, I may currently be crazier than usual...
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Gtk# not found

2006-04-10 Thread Rafael Teixeira
Well Paulo,

It does make sense.

On Linux GTK# 2.4 is able to run with most installed linuxes, without
forcing people to upgrade GTK+.
Windows doesn't come with GTK, so normally it is installed with GTK#,
and so in that we can use the latest stable version, as that has also
better support for/runs better in Windows.

Hope it clarifies things a bit,

On 4/8/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Attached goes the file erro.txt with the output. But, yes, my program uses
 Gtk# 2.8.

 And,
 The Linux installer comes with gtk# 2.4, while the windows installer
  comes with gtk# 2.8.
 Am i very stupid or does this not makes any sense at all?



 Citando Wade Berrier [EMAIL PROTECTED]:

  On Sat, 2006-04-08 at 00:06 +0100, [EMAIL PROTECTED] wrote:
   It was good to know that it was a bug, as a first thing, because i actually
   ended up suspecting that it might have not been a bug.
   And it is good to know that you are still paying attention to it.
   And even better to know that you may be seeing a solution.
  
   I ended up compiling the program with mono 1.1.13.4, to be sure my users
  could
   run it without having to install another mono. This time in Windows.
   Yet another funny thing. Tried it in mono 1.1.13.4 (same) in Linux and it
   complained again about not finding Gtk... I had used the .bin installer
  (the
   click and run installer). So you may want to check that one too, if that
  wasn't
   in the plans already.

  Could you post some details about the error using the Linux installer?
  The Linux installer comes with gtk# 2.4, while the windows installer
  comes with gtk# 2.8.  Maybe that was the issue?

  Please run you app with with setting this first:

  export MONO_LOG_LEVEL=debug

  and post the output so we can debug this.

  Thanks!

  Wade

  
  
   Citando Mike Kestner [EMAIL PROTECTED]:
  
On Fri, 2006-03-31 at 16:04 +0100, [EMAIL PROTECTED] wrote:
 That instalation of mono worked. My program seemed to run fine.
 In the mean time, i noticed that there is another version of mono,
  1.1.13.6,
and
 went to try that one. It still gives the same problem.

 For watever reason, your experimental installer for Windows runs my Gtk#
2.4
 application while the official mono one does not (neither in Windows nor
  in
 Linux)...
  
Talked to Wade about this today and we think we figured out why the
mono-project installers policy stuff wasn't working.  He's working on
the issue.
  
--
Mike Kestner [EMAIL PROTECTED]
  
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list
  
  
  
  
   __
   Porque insiste em pagar o dobro?
   Compare o preço da sua ligação à Internet
   http://acesso.portugalmail.pt/maisbarato
   ___
   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




 __
 Sabe quanto gasta com a sua ligação à Internet?
 Verifique aqui: http://acesso.portugalmail.pt/contas


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






--
Rafael Monoman Teixeira
---
As I'm currently working a lot with Java and even fixing Java VMs
(JamVM/Kaffe) and GNU Classpath code, I think I may partly borrow the
title (Javaman) from my friend Bruno Souza and become the
MonoNJavaMan. Yeah, I may currently be crazier than usual...
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] VB ASP.NET on a Fedora Core 3

2006-04-11 Thread Rafael Teixeira
Seems like some incompatibility on the generated (precompiled) ascx
control, with our libs, please give us some more detail, to find how
to make it work, it would be better if the information comes as a
bugzilla report, see http://www.mono-project.com/Bugs for guidance.

Thanks,

On 4/10/06, Mauro Bertoli [EMAIL PROTECTED] wrote:
 Hi, I'm not sure that this is the correct list.
 I'm trying to run a VB ASP.NET developed with VS2003
 on a Fedora Core 3 x86-64 using
 XSP: xsp-1.0.9-0.novell
 MONO: 1.1.8

 I've copied all (RELEASE - NO incremental build) files
 but I get an error, so I searched and dropped
 CodeBehind incompatibility:
 Codebehind=_Footer.ascx.vb

 but now I get this error:

 Description: Error parsing a resource required to
 service this request. Review your source file and
 modify it to fix this error.
 Error message: Cannot find type xxx.C_footer

 File name: /var/www/html/yyy/xxx/_Footer.ascxLine:
 1

 Source Error: %@ Control Language=vb
 AutoEventWireup=false  Inherits=xxx.C_footer %

 What I'm wrong?

 Must recompile Mono with a newer version 1.1.14?
 I tried but I've some problems recompiling
 libgdiplus-1.1.14:
 [snip]
 some warning about missing image libraries (tiff and
 gif)

 configure: error: Failed to compile with X11/Xlib.h
 include.  You must fix your compiler paths

 Mono-1.1.14 is compiled fine (after installing
 glib2-devel-2.4.7-1.x86_64)

 Thanks






 ___
 Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB
 http://mail.yahoo.it
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list



--
Rafael Monoman Teixeira
---
As I'm currently working a lot with Java and even fixing Java VMs
(JamVM/Kaffe) and GNU Classpath code, I think I may partly borrow the
title (Javaman) from my friend Bruno Souza and become the
MonoNJavaMan. Yeah, I may currently be crazier than usual...
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] ByteFX driver - Connector/Net

2006-04-15 Thread Rafael Teixeira
AFAIK, it's just a licensing issue: GPL for a library may muddle
things with our mostly X11/MIT library licensing. We do carry some
LGPL libs, but that is reasonable, as LGPL limits its effects to the
library itself, including a GPL one into the package would make people
think they may be constrained to GPL when using Mono to develop apps,
what is not the case.

Hope it helps,

On 4/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Hi All,

 I wanted to contact you regarding your built-in
 MySQL data connector.  I see that you still contain
 the Byte FX driver which was the pre-cursor to
 the MySQL Connector/.NET driver.  Could we
 discuss packaging MySql.Data instead?

 I am discussing the use of mono with MySQL
 at the user conference and I would love to note
 that we're working toward inclusion of the current
 GA version of the driver in some future version
 of mono.


 Best Regards,

 Matt Lord, Senior Support Engineer
 Brooklyn, NY, USA
 MySQL AB, www.mysql.com

 Don't miss the MySQL Users Conference 2006: http://www.mysqluc.com

 
 This message was sent using IMP, the Internet Messaging Program.


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



--
Rafael Monoman Teixeira
---
As I'm currently working a lot with Java and even fixing Java VMs
(JamVM/Kaffe) and GNU Classpath code, I think I may partly borrow the
title (Javaman) from my friend Bruno Souza and become the
MonoNJavaMan. Yeah, I may currently be crazier than usual...
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] VB libraries and compiler status?

2006-04-17 Thread Rafael Teixeira
On 4/17/06, Jonathan Morgan [EMAIL PROTECTED] wrote:
 On 4/17/06, Miguel de Icaza [EMAIL PROTECTED] wrote:
  Hello,
 
   I have some changes and additions to the
   Microsoft.VisualBasic libraries.
   It looks like other than a few changes in the last week,
   neither the libraries nor the compiler have been worked on in months.
   Are these still being developed?
   Who is currently in charge?
 
  Novell is no longer working on the VB.NET compiler.  It was originally
  one of the planned features for Mono 1.2, but we we decided to retarget
  our efforts.
 
  There were a number of reasons for this decision:
 
  * MBas became increasingly hard to maintain.  mbas was based on
a very old version of mcs, and did not get any of the later
improvements in mcs.

 I have wondered why it was based on mcs as a new compiler.  I would
 have thought that Microsoft made enough changes to VB.NET in order to
 make it conform to the CLR that it could be translated fairly directly
 to C#, in which case that would seem to me to be an easier and more
 maintainable compiler (and it would also get all the improvements in
 mcs).

In truth VB.NET has some syntaxes that can't be expressed in C#, like
optional (defaulted) parameters. Currently we post-process the runtime
library written in C#, instead of VB.NET like the MS one, by
converting to IL, changing some things and reassembling, so that some
defaulted parameters can be embedded as needed.

Also double translation, isn't normally a good performer, while using
the same compiler classes (as in the beginning of mbas development)
made it possible for good performance while I was able to keep them in
sync. Some other devs contributed a lot of code to mbas (after all,
there are HUGE semantic differences between the languages) that made
it quite impossible to keep mbas in sync with mcs after the
contributions.


  * The runtime is still there, and its today probably the most important
piece, as it allows existing VB.NET applications to run on Mono.

 Can this runtime be accessed from C#, or is it purely used by the VB compiler?

 Jon

Yes it can, but little of it is really needed by non-VB devs, as it
mainly wraps base classes functionality in a way that looks a lot like
VB6, to make long-time VBers happy. Some other bits are helper
functions to support the late-binding semantics optionally available
in the language.

Hope it clarifies things a bit,


--
Rafael Monoman Teixeira
---
As I'm currently working a lot with Java and even fixing Java VMs
(JamVM/Kaffe) and GNU Classpath code, I think I may partly borrow the
title (Javaman) from my friend Bruno Souza and become the
MonoNJavaMan. Yeah, I may currently be crazier than usual...
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] BSTR Patch

2006-05-02 Thread Rafael Teixeira

On 5/1/06, Jonathan S. Chambers [EMAIL PROTECTED] wrote:

Here's the first of some COM Interop patches; this one adds BSTR support (on 
Windows only).


Nice


I'll send some test patches too, if someone could tell me whether they should 
be part of some current test or a new one.





On platforms other than Windows the BSTR related methods currently g_error 
(this was the old code). Should I throw a NotSupported/NotImplemented exception 
instead?



What is the XPCOM equivalent? I remember been using BSTRs a lot in my
COM days, so that not having something to map it outside Windows may
turn down lots of interesting interoperation scenarios, that may be
made cross-platform.


Thanks,
Jonathan


:)

--
Rafael Monoman Teixeira
---
As I'm currently working a lot with Java and even fixing Java VMs
(JamVM/Kaffe) and GNU Classpath code, I think I may partly borrow the
title (Javaman) from my friend Bruno Souza and become the
MonoNJavaMan. Yeah, I may currently be crazier than usual...
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] SASL Support?

2006-05-02 Thread Rafael Teixeira

All we have about SASL is inside the Novell.Directory.Ldap library.
Specially some classes in the Novell.Directory.Ldap.Rfc2251 namespace.
And it is geared towards LDAP authentication.

The smtp classes (System.Web.Mail) seem to be very simple, not supportting SASL.

No SASL-specific library is available.

Googling a bit, I've found no evidence of some managed version of (or
managed wrapper for) the Cyrus SASL library, either.

So you can factor out the classes in the LDAP client code, if needed,
to have something to use in other scenarios.

:)

On 5/2/06, Nachiappan Palaniappan [EMAIL PROTECTED] wrote:

Hi,

Is there the support for SASL in Mono? I already asked Sebastien
regarding this and got the response. Still I need some information
regarding this. If any of you aware of this, please let me know.

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




--
Rafael Monoman Teixeira
---
As I'm currently working a lot with Java and even fixing Java VMs
(JamVM/Kaffe) and GNU Classpath code, I think I may partly borrow the
title (Javaman) from my friend Bruno Souza and become the
MonoNJavaMan. Yeah, I may currently be crazier than usual...
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Mono.GetOptions Option Bundles

2006-05-05 Thread Rafael Teixeira

Currently we are API and ABI frozen. You may change local copy and
submit a patch to be considered in some future version.

Personally I would like not to make things non-declarative,
specífically for those two  debugging itens we can have some global
disabler for such features, so that a release build of some app,
doesn't sport them.

Sorry I'm in a hurry just now,

Thanks,

On 5/5/06, Almann T. Goo [EMAIL PROTECTED] wrote:

I've been using Mono.GetOptions for a compiler project of mine and it is a
great library for option parsing.  However, there is an issue that I've run
into that is slightly troublesome.  I wanted to run this issue by the
community in case I missed a workaround or a solution--documentation is a
bit sparse and the source doesn't seem to indicate a way to work around the
described issue.

Currently the option bundle is defined as a sub-class of the Options class.
For bundles that don't want the standard options, you can attribute an
overridden method that is attributed as an option with the
KillOptionAttribute attribute.  This works well for virtual methods that are
decorated as part of the option bundle, but for non-virtual members ( i.e.
fields and properties) this poses a problem since you cannot override such
members.

This affects the VerboseParsingOfOptions and DebuggingOfOptions members in
particular since these are non-virtual properties and you will always have
these options regardless of what you may desire.

If there is no known work around for this, I would suggest (and may even
develop the fix for if I have time) that an OptionBundle interface be
defined.  This interface would be member-less and the existing Options class
could implement it and store it as a property (defaulting to a self
reference).  An implementation could then explicitly define its own
OptionBundle irrespective of the standard Options class which may invoke the
standard options defined.  The point would be that the application could
have better control over what options are in the bundle.  The meta-data
approach is a nice one, but the inheritance hierarchy and non-virtual
members could get in the way; this would solve that.

The OptionList class (and possibly the OptionDetails class, but I am pretty
sure it is not dependant on introspecting the option bundle) would need to
be changed to work with OptionBundle.  Furthermore, backwards compatibility
would be maintained with how Mono.GetOptions is used today since the default
value of the property in the Options class would be itself.  To use this new
feature you would probably override the InitializeOtherDefaults method to
set the property to the desired bundle implementation.

Best Regards,
Almann

--
Almann T. Goo
[EMAIL PROTECTED]
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list






--
Rafael Monoman Teixeira
---
As I'm currently working a lot with Java and even fixing Java VMs
(JamVM/Kaffe) and GNU Classpath code, I think I may partly borrow the
title (Javaman) from my friend Bruno Souza and become the
MonoNJavaMan. Yeah, I may currently be crazier than usual...
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Mono.GetOptions Option Bundles

2006-05-05 Thread Rafael Teixeira

Sorry forgot to think :(

Nothing mandates that you use the standard bundle as the basis, you
can create your own with just the needed options. The down side is
that some functionality would have to be duplicated in that case.

:)

On 5/5/06, Almann T. Goo [EMAIL PROTECTED] wrote:

I've been using Mono.GetOptions for a compiler project of mine and it is a
great library for option parsing.  However, there is an issue that I've run
into that is slightly troublesome.  I wanted to run this issue by the
community in case I missed a workaround or a solution--documentation is a
bit sparse and the source doesn't seem to indicate a way to work around the
described issue.

Currently the option bundle is defined as a sub-class of the Options class.
For bundles that don't want the standard options, you can attribute an
overridden method that is attributed as an option with the
KillOptionAttribute attribute.  This works well for virtual methods that are
decorated as part of the option bundle, but for non-virtual members ( i.e.
fields and properties) this poses a problem since you cannot override such
members.

This affects the VerboseParsingOfOptions and DebuggingOfOptions members in
particular since these are non-virtual properties and you will always have
these options regardless of what you may desire.

If there is no known work around for this, I would suggest (and may even
develop the fix for if I have time) that an OptionBundle interface be
defined.  This interface would be member-less and the existing Options class
could implement it and store it as a property (defaulting to a self
reference).  An implementation could then explicitly define its own
OptionBundle irrespective of the standard Options class which may invoke the
standard options defined.  The point would be that the application could
have better control over what options are in the bundle.  The meta-data
approach is a nice one, but the inheritance hierarchy and non-virtual
members could get in the way; this would solve that.

The OptionList class (and possibly the OptionDetails class, but I am pretty
sure it is not dependant on introspecting the option bundle) would need to
be changed to work with OptionBundle.  Furthermore, backwards compatibility
would be maintained with how Mono.GetOptions is used today since the default
value of the property in the Options class would be itself.  To use this new
feature you would probably override the InitializeOtherDefaults method to
set the property to the desired bundle implementation.

Best Regards,
Almann

--
Almann T. Goo
[EMAIL PROTECTED]
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list






--
Rafael Monoman Teixeira
---
As I'm currently working a lot with Java and even fixing Java VMs
(JamVM/Kaffe) and GNU Classpath code, I think I may partly borrow the
title (Javaman) from my friend Bruno Souza and become the
MonoNJavaMan. Yeah, I may currently be crazier than usual...
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Umlaute/special Chars

2006-05-13 Thread Rafael Teixeira

-codepage is also supported by mbas for compiling VB.NET in Mono. But
beware that you may have to set things indirectly: in web.config,
unless you precompile.

If you can't dig the details on online documentation (msdn and Mono
sites  mailing-lists archives), ask again here.

Fun,

On 5/13/06, Miguel de Icaza [EMAIL PROTECTED] wrote:

Hello,

 I programmed a .Net 2003 VB Webservice, which works fine, but there is
 a problem

 with german umlaute/special chars, like äöüß. Only ? is shown.

 What should I do?

This is likely an encoding problem.  The problem is tracking it down.

If your web service files are in C#, its easy, the compiler is using one
encoding to compile, and your files are stored in another one.   Use the
-codepage: parameter to mcs to specify the encoding of your sources.

Miguel

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




--
Rafael Monoman Teixeira
---
As I'm currently working a lot with Java and even fixing Java VMs
(JamVM/Kaffe) and GNU Classpath code, I think I may partly borrow the
title (Javaman) from my friend Bruno Souza and become the
MonoNJavaMan. Yeah, I may currently be crazier than usual...
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Umlaute/special Chars

2006-05-15 Thread Rafael Teixeira

See the FAQ

http://www.mono-project.com/FAQ:_ASP.NET#I_write_pages_that_contain_non-ASCII_characters.2C_and_they_appear_garbled_in_the_browser._What.27s_wrong.3F

:)



On 5/13/06, Stephan Hüper [EMAIL PROTECTED] wrote:

Hi!
Where should I modify the web.config?
At my Vs.Net Project or at xsp/mod_mono ?

Thank You!
Stephan

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Rafael Teixeira
Gesendet: Samstag, 13. Mai 2006 21:16
An: Miguel de Icaza
Cc: Stephan Hüper; mono-devel-list@lists.ximian.com
Betreff: Re: [Mono-dev] Umlaute/special Chars

-codepage is also supported by mbas for compiling VB.NET in Mono. But
beware that you may have to set things indirectly: in web.config,
unless you precompile.

If you can't dig the details on online documentation (msdn and Mono
sites  mailing-lists archives), ask again here.

Fun,

On 5/13/06, Miguel de Icaza [EMAIL PROTECTED] wrote:
 Hello,

  I programmed a .Net 2003 VB Webservice, which works fine, but there is
  a problem
 
  with german umlaute/special chars, like äöüß. Only ? is shown.
 
  What should I do?

 This is likely an encoding problem.  The problem is tracking it down.

 If your web service files are in C#, its easy, the compiler is using one
 encoding to compile, and your files are stored in another one.   Use the
 -codepage: parameter to mcs to specify the encoding of your sources.

 Miguel

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



--
Rafael Monoman Teixeira
---
As I'm currently working a lot with Java and even fixing Java VMs
(JamVM/Kaffe) and GNU Classpath code, I think I may partly borrow the
title (Javaman) from my friend Bruno Souza and become the
MonoNJavaMan. Yeah, I may currently be crazier than usual...




--
Rafael Monoman Teixeira
---
As I'm currently working a lot with Java and even fixing Java VMs
(JamVM/Kaffe) and GNU Classpath code, I think I may partly borrow the
title (Javaman) from my friend Bruno Souza and become the
MonoNJavaMan. Yeah, I may currently be crazier than usual...
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] [Asp.net] Compilation Error

2006-05-29 Thread Rafael Teixeira

I think it is an error in mbas, not fixed yet.

Currently it is better to put all code in codebehind, precompile in
VS.NET and change the @page language to C#, before deploying in
xsp/mod_mono, to avoid using mbas.

:(

On 5/29/06, Stephan Hüper [EMAIL PROTECTED] wrote:

Hello,

I'm using the newest version available on the homepage.
My aspx pages written in Vb.Net show me a compilation error.
On IIS and on an older mono version it works.

Error like that :
/tmp/wwwrun-temp-aspnet-0/d6049a99/19231.0.vb(96,37) : error BC30524:
Property 'Tx_count_known' lacks a 'get' accesor



Thanks for help!
Stephan Hüper


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







--
Rafael Monoman Teixeira
---
As I'm currently working a lot with Java and even fixing Java VMs
(JamVM/Kaffe) and GNU Classpath code, I think I may partly borrow the
title (Javaman) from my friend Bruno Souza and become the
MonoNJavaMan. Yeah, I may currently be crazier than usual...
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Umlaute/special Chars

2006-05-29 Thread Rafael Teixeira

Are you sure you didn't precompile the web services in VS.NET, or are
they written in C#? Because as I pointed while answering other of your
emails, mbas currently isn't correctly compiling some common code
constructs, that frequently appear in the generated code inside
ASP.NET pages/web services.

If you precompiled your utf-8-encoded sources in VS.NET you need to
tell VS.NET they aren't using the default encoding, or it will compile
them wrong. And vice-versa if you didn't pre-compile but deployed
sources that aren't utf-8-encoded (normally VS.NET saves them in the
'default' encoding that corresponds to the configured codepage for
your user in windows) the instructions you've put on the config file,
will make things the wrong way also.

Hope it helps,

On 5/29/06, Stephan Hüper [EMAIL PROTECTED] wrote:





Hello,



in the XSP directory, where the „ServiceClient.exe lays, I wrote the
changes in web.config like described in the FAQ . (see at the end)

I restarted Apache2 and all  mod_mono processes, but no effect.

The webservice only shows ? for special Chars.



What should I do?



Thanks for help

Stephan Hüper





?xml version=1.0 encoding=utf-8?

configuration

!-- Enable this if you want gzip compression. Also uncomment the
mono.aspnet section below

configSections

sectionGroup name=mono.aspnet

   section name=acceptEncoding
type=Mono.Http.Configuration.AcceptEncodingSectionHandler,
Mono.Http, Version=1.0.5000.0,
PublicKeyToken=0738eb9f132ed756/

/sectionGroup

/configSections

--

system.web

compilation

compilers

compiler language=vb;vbs;visualbasic;vbscript
extension=.vb warningLevel=1

  compilerOptions=/codepage:utf8

  type=Microsoft.VisualBasic.VBCodeProvider,
System, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089 /

  compiler language=cs;c#;csharp extension=.cs
warningLevel=1


compilerOptions=/codepage:utf8


type=Microsoft.CSharp.CSharpCodeProvider, System,
Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089 /

/compilers

   /compilation

   globalization  requestEncoding=utf-8

   responseEncoding=utf-8

   fileEncoding=utf-8/

customErrors mode=Off/

!--

webServices

   soapExtensionTypes

   add
type=DumpExtension, extensions priority=0 group=0 /

   add
type=EncryptExtension, extensions priority=1 group=0 /

   /soapExtensionTypes

/webServices

--

authentication mode= None

/authentication

httpModules

!-- Some modules available in Mono.Http --

!--

add name=AcceptEncodingModule
type=Mono.Http.Modules.AcceptEncodingModule, Mono.Http,
Version=1.0.5000.0, PublicKeyToken=0738eb9f132ed756/

--

!--add name=BasicAuthenticationModule


type=Mono.Http.Modules.BasicAuthenticationModule,
Mono.Http/--

!--add name=DigestAuthenticationModule


type=Mono.Http.Modules.DigestAuthenticationModule,
Mono.Http/--

/httpModules

pages validateRequest=false /

/system.web



!-- If you use AcceptEncodingModule, you need this too



mono.aspnet

acceptEncoding

add encoding=gzip type=Mono.Http.GZipWriteFilter,
Mono.Http, Version=1.0.5000.0,
PublicKeyToken=0738eb9f132ed756 disabled=no /

/acceptEncoding

/mono.aspnet

--



appSettings

add key=MonoServerDefaultIndexFiles

 value=index.aspx, Default.aspx, default.aspx,
index.html, index.htm /

add key=DBProviderAssembly

 value=Npgsql/

add key=DBConnectionType

 value=Npgsql.NpgsqlConnection/

add key=DBConnectionString

 value=server=127.0.0.1;user
id=monotest;password=monotest;dbname=monotest/

!--add key=Authentication value=Basic /

add key=Basic.Users value=basic-auth.txt /--

!--add key=Authentication value=Digest /

add key=Digest.Users value=basic-auth.txt /--

/appSettings

/configuration

##





Von: Stephan Hüper [mailto:[EMAIL PROTECTED]
 Gesendet: Samstag, 13. Mai 2006 23:16
 An: Rafael Teixeira; Miguel de Icaza
 Cc: mono-devel-list@lists.ximian.com
 Betreff: AW: [Mono-dev] Umlaute/special Chars



Hi!
 Where should I modify the web.config?
 At my Vs.Net Project or at xsp/mod_mono ?

 Thank You!
 Stephan

Re: [Mono-dev] Can Mono run on IBM-AIX OS?

2006-06-15 Thread Rafael Teixeira

AFAIK,

1) AIX isn't supported/mantained
2) XSP performance is good but not outstanding and we have some way to
go in the GC to allow for non-stop operation.
3) Why? But nevertheless you can register other extensions to be dealt
by the same webhandler that processes .aspx or the one that deals with
.asmx and so on...

Hope it helps,

On 6/15/06, Aung [EMAIL PROTECTED] wrote:





Hi guys,



Perhaps, these are newbie questions.

Can Mono run on IBM-AIX OS?

Is it commercially feasible (performance wise) to run XSP as the server?

Is it possible to change file extension from .aspx or asmx to something
else?



Thanks.



Aung










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






--
Rafael Monoman Teixeira
---
The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man. George Bernard Shaw
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] System.Configuration 2.0 ApplicationSettings infrastructure.

2006-06-17 Thread Rafael Teixeira

I don't think you even have to cook the filename in the same way as
MS, as AppSettings only need to be always retrievable from the same
place for the same exe and not collide with setting files from other
exes, hence the exe name plus url piece, but in linux we can for
something simpler, probably just

~/.config/application-name/exename.settings

Just my two cents,

On 6/17/06, Gareth Pearce [EMAIL PROTECTED] wrote:

Hi,

In the process of porting my little freeware puzzle game to mono, I've
found that the .Net 2.0 ApplicationSettings infrastructure is currently
quite incomplete. I've got one patch in bugzilla so that it at least
doesn't crash under normal use, but even with that,
LocalFileSettingsProvider is just a stub, it doesn't actually perform
any persistence.

I was considering fixing it all up so it worked nicely.  But wanted to
a) check no one was already working in the area and b) check some design
questions.

The .Net documentation on the location of the user scoped settings file
used by local file settings provider appears incorrect.  It states that
user scoped settings files are found in User directory/Local
Settings/Application Data/Company Name/Product Name/Version Number
but in reality the product name is replaced with the executable
name_Url_hash of file location url or something .
I am wondering whether I should be aiming to match the hash so that the
same program run under mono vs being run under .net will still find the
same settings files.  It would seem like a difficult job without having
access to the actual .net class library disassembly. The hash looks like
base 32 encoding - 26 lower case letters and 6 digits - 32 characters
gives 160bits, maybe SHA-1?  But still the question is of what.

And finally, if I get this all done soon would it be likely to go in
before the 1.2 release?  I'm hoping that Linux and Mac OS-X users can
start using my puzzle game once mono 1.2 goes out and it would be good
if their settings actually saved.

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




--
Rafael Monoman Teixeira
---
The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man. George Bernard Shaw
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Adding a missing property to System.Web.Services/WebServiceBindingAttribute.cs

2006-06-21 Thread Rafael Teixeira
Someone tripped on the lack of it (seems VS.NET 2005 template adds it
by default)

I compiled and run all nunit tests for the affected assembly with no
regressions,. May I commit?

Diff:

Index: System.Web.Services/WebServiceBindingAttribute.cs
===
--- System.Web.Services/WebServiceBindingAttribute.cs   (revision 61921)
+++ System.Web.Services/WebServiceBindingAttribute.cs   (working copy)
@@ -40,7 +40,9 @@

 #if NET_2_0
bool emitConformanceClaims;
-   WsiClaims conformanceClaims;
+   WsiClaims conformanceClaims;
+
+   WsiProfiles conformsTo;
 #endif

#endregion // Fields
@@ -100,7 +102,12 @@
public bool EmitConformanceClaims {
get { return emitConformanceClaims; }
set { emitConformanceClaims = value; }
-   }
+   }
+
+   public WsiProfiles ConformsTo {
+   get { return conformsTo; }
+   set { conformsTo = value; }
+   }
 #endif


Index: System.Web.Services/ChangeLog
===
--- System.Web.Services/ChangeLog   (revision 61921)
+++ System.Web.Services/ChangeLog   (working copy)
@@ -1,3 +1,7 @@
+2006-06-21  Rafael Teixeira [EMAIL PROTECTED]
+
+   * WebServiceBindingAttribute.cs: new 2.0 property WsiProfiles
ConformsTo.
+
 2006-01-03  Chris Toshok  [EMAIL PROTECTED]

* WsiProfiles.cs: new 2.0 enum.


-- 
Rafael Monoman Teixeira
---
The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man. George Bernard Shaw
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Web service client - SendOrPostCallback could not be loaded

2006-06-30 Thread Rafael Teixeira
Janne and Miguel,

SendOrPostCallback is a delegate type and it is implemented in Mono
(in corlib), but it is defined only for the 2.0 profile, here is the
source:

#if NET_2_0

using System.Runtime.InteropServices;

namespace System.Threading
{
[ComVisible (false)]
public delegate void SendOrPostCallback (object state);
}

#endif

So Janne you may have started the embedded Mono for the wrong profile,
or you may have loaded the 1.x corlib in it, instead of the 2.0 one.


Hope it helps,

On 6/30/06, Janne Rantala [EMAIL PROTECTED] wrote:
 2006/6/30, Miguel de Icaza [EMAIL PROTECTED]:

  Hello,
 
   When I try to initialize client from embedded Mono, I got this error
   stating that SendOrPostCallback could not be loaded?
 
  It means that this method has not been implemented in Mono yet.
 
  Miguel
 

 How is it possible? Few days ago I got that other error I mentioned with
 same assembly.

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





-- 
Rafael Monoman Teixeira
---
The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man. George Bernard Shaw
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] 1.2 release?

2006-06-30 Thread Rafael Teixeira
Hi Tizio, inline

On 6/30/06, Tizio Incognito [EMAIL PROTECTED] wrote:
 Hello folks,
 I'm a .Net developer, always working in a M$ environment.

 A customer, addicted to Linux, asked me to try to run an application of
 mine under mono. This application is Fx 2.0 but actually don't use very
 much of 2.0 libraries.. so I'd like to know, if possible, when something
 to run 2.0 assemblies will be available with mono. I keep finding 1.1xxx
 releases. I saw that 1.2 release was predicted to lunch in Q1/2006.

Well 1.1.xxx releases of Mono, can optionally install our preview of
the .NET 2.0 profile, that currently has support for the new runtime
features like Generics, and corlib 2.0 reflects that. But surely we
still miss much of the 2.0 enhancements to the other libraries.

 Also: my application is as I said 2.0, developed with Visual Basic. I
 didn't find much difficoult to convert it to C# (with VBConversions' VB
 to C# converter).

As it seems you are talking about desktop WinForms apps, you may try
to run the pre-compiled assemblies instead of converting to C#, but

 But as you probably know, VB has the my namespace
 wich wraps many classes.. will my be ported to linux or I have to use
 classic C# calls to classes? If this is the case, I'll start migrating
 my calls to standard framework calls (or build a personal wrapper for
 those).

We didn't start to provide any support for VB.NET 2.0 runtime support,
but as I understand it, the My namespace is in truth IDE-generated
code, wrapping your resources, configurations, etc.. so when you
compile your app it is compiled in the same assembly, so it should run
in Mono, pending some support classes that may be needed in MS.VB.dll,
and that sure we don't have yet.

Furthermore, we are just completing our implementation of WinForms
1.x, and haven't started to implement the new features and controls
found in WinForms 2.x, so probably it will represent another stone in
your path.

Anyway, we would love that you tried to run things and report the
bugs, and unimplemented features, that may be holding your app from
being able to run in Mono.

 Thanks in advance,
 tK

Thanks,

-- 
Rafael Monoman Teixeira
---
The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man. George Bernard Shaw
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Component 1

2006-06-30 Thread Rafael Teixeira
The problem is, we don't know if the third-party controls/tools were
developed with 100% managed and portable code, so you have to try them
in Mono.

Some years ago, most of the controls I tried were just wrappers to
COM/ActiveX controls/components and surely those didn't run on Mono.
Since I've being developing in Linux mainly and so without VS.NET and
3rd party components, so I can't say if that has changed.

I know, from my friends on that front, that Delphi.NET users are tied
to Windows, as the many useful frameworks Borland gave them aren't
portable.

:)

On 6/30/06, Rich Gilson [EMAIL PROTECTED] wrote:
 I'm working on porting an application at work to .NET and wanted to do it in
 Mono so that it could be run on both Linux and Windows, but I'm trying to
 figure out if there is any what to use Third-Party tools in Mono?  Or are
 the tools that work on Visual Studio Windows-only?  If they can be used, how
 would I go about using them and getting everything packaged together when I
 build it?

 Rich


 On 6/27/06, Rich Gilson [EMAIL PROTECTED] wrote:
  Is it possible to use any of the Component 1 objects in Mono?
  --
  In a world without fences, who needs Gates?
 
 
 


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





-- 
Rafael Monoman Teixeira
---
The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man. George Bernard Shaw
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


  1   2   3   4   >