[Mono-winforms-list] Re: [Mono-dev] Getting and injecting Windows Forms messages

2005-11-21 Thread pablosantosluac

Hi,

Sorry for writing to the wrong list.

I didn't know about nunit-winforms (I think you mean nunitforms, don't 
you?),
nor about the way you fake messages in the tests... I'll have a look into 
that.


Thanks

- Original Message - 
From: Peter Dennis Bartok [EMAIL PROTECTED]

To: [EMAIL PROTECTED]; mono-devel-list@lists.ximian.com
Cc: mono-winforms-list@lists.ximian.com
Sent: Monday, November 21, 2005 4:57 AM
Subject: Re: [Mono-dev] Getting and injecting Windows Forms messages



Pablo,

The better list for this discussion is 
[EMAIL PROTECTED]


If you look at our tests (for example
mcs/Managed.Windows.Forms/Tests/System.Windows.Forms/Label.cs) you'll see
that there already are tests that 'fake' messages for testing purposes,
since our implementation uses Win32 messages even on X11 and OS X. (Our
window drivers translate native messages into their Win32 equivalents and
pass them up through the framework). However, we only use and generate the
subset of messages that we require for proper support of WinForm's
documented features. (It is left as an excercise for contributors to add
other messages if they thing the drivers should generate them. Same 
applies
to controls, we don't create control-specific notifications like 
BN_CLICKED

today, since the managed framework has events that convey the same
information and we don't need them, but for compatibility it is easy to 
add

generation of those down the road. Single line of code most of the time)

There's already an automated test tool called nunit-winforms that allows 
to

test winforms apps, it doesn't fully work with our WinForms implementation
yet (something that's I've started fixing and is on my todo list).

As for injecting messages, I can think of multiple ways of doing that, 
from

using reflection to using sendmessage (and on X11 translating that into a
custom message that our driver understands)

Cheers,
 Peter



-Original Message-
From: [EMAIL PROTECTED]
To: mono-devel-list@lists.ximian.com
Date: Sunday, 20 November, 2005 17:04
Subject: [Mono-dev] Getting and injecting Windows Forms messages



Hi,

In order to retrieve all the messages processed by an application I think 
I

can use Application.AddMessageFilter. Ok, but what about injecting them
later on?

Well, in windows I could use TranslateMessage/DispatchMessage to reinject
the recorded messages (at least in win32 apps), (BTW fixing msg.Hwnd 
with

the correct value if you try to play after relaunching the application),
but with mono (on Linux) this is not possible. Is there a way to do that?

With something like that it would be possible to write a multi-platform
test recorder application for Mono, something to create and run
automated
user tests on both Windows and Linux (and maybe other platforms too...). 
I

don't know such a tool (AFAIK WinRunner, Rational's TestRobot,
AutomatedQA's
TestComplete, and the like, only run on Windows) and maybe it would be
quite
interesting... (at least until we have an Automation namespace like
Avalon).

Thanks.


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






___
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list


Re: [Mono-winforms-list] fully portable IDE with GTK

2005-11-21 Thread Jackson Harper
On Sun, 2005-11-20 at 18:58 -0800, Ron Braithwaite wrote:
 On Nov 20, 2005, at 2:45 PM, Jackson Harper wrote:
  On Sat, 2005-11-19 at 22:36 -0600, Adam Hill wrote:
  The irony of this thread is mind boggling. :)
 
  The irony of your post is that it was easier to rewrite sharpdevelop
  using gtk# then to get it working with our winforms (because of  
  pinvokes
  and windowsisms) ;-)
 
  Asking about GTK portability/GTK GUI Builder and then using
  MonoDevelop as an example of a GTK GUI IDE and it does not run on
  cross-platform.
 
  Monodevelop does not work on windows because its designed to be a  
  first
  class IDE on Linux, not a cross platform IDE. So it takes  
  advantages of
  things that don't exist on windows, and does things in a more linuxy
  way.  Instead of taking the lowest common denominator of two operating
  systems (one of which already has plenty of IDEs) they decided to  
  focus
  on Linux/Unix.
 
 And the irony of your post is that some of us are primarily  
 interested in the cross-platform aspects of mono and not writing  
 monodevelop to be portable seems a little ... something.

There is nothing ironic about that. Thats just reality. Monodevelop is
not meant to be a cross platform IDE. Note the first line on their
website:

MonoDevelop is a free GNOME IDE primarily designed for C# and
other .NET languages.


 I'm using Mac OS X and I would love to be able to use monodevelop.
 
 Oh well. Maybe Apple will tell us about where the hooks are in Xcode  
 so we could develop on that for mono. Until then, I'll just use  
 jEdit, I suppose.
 
 Ron Braithwaite
 2015 NE 37th Ave
 Portland, OR 97212 USA
 503-267-3250
 [EMAIL PROTECTED]
 
 
 ___
 Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-winforms-list

___
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list


[Mono-dev] Invalid IL code

2005-11-21 Thread Richard Löfflad

Hi all,
I want to develop a C# application which uses a third-party assembly.  The 
assemby is an API to the web services of the company that provides the 
assembly.  The company supports the DLL only on .NET

A simple C# programm calling a method of the API works fine on .NET but results 
the followin error on MONO:
** ERROR **: Invalid IL code at IL000d in 91:24 (): IL_000d: stloc.0 

I installed mono 1.1.10 via rpms under CentOS 4.2 (RHEL clone). I think the 
installation of mono is proper, because programs run fine until the call into 
the assembly.

I have no idea, who to go ahead.

Many thanks in advance
Richard 






__
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193

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


[Mono-dev] Re: Xsl transfrom problem

2005-11-21 Thread Atsushi Eno

Hello Vladimir,


I've found a problem in xsl transform where key function retrieves a key
from a document other than the document containing the context node.

See attached sample that reproduces the problem. Also I've attached a
patch for Mono.Xml.Xsl\XslKey.cs, but I'm not sure this is right place
to fix, so please review.


It resulted in some standalone test breakage, but I think the patch
is better, since it is rather conformant to the spec 12.2. Though
MS.NET also cannot handle keys in such way under certain condition
(as done in standalone tests), we'd better apply this patch and get
conformant results at any time, at least until we solve the puzzle.

So please apply the patch, and add below to ignore.lst in
mcs/class/System.XML/Test/System.Xml.Xsl/standalone_tests:

idkey_idkey18
idkey_idkey50
Keys__91835

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


Re: [Mono-dev] Invalid IL code

2005-11-21 Thread Robert Jordan

Richard,


I want to develop a C# application which uses a third-party assembly.  The 
assemby is an API to the web services of the company that provides the 
assembly.  The company supports the DLL only on .NET

A simple C# programm calling a method of the API works fine on .NET but results 
the followin error on MONO:
** ERROR **: Invalid IL code at IL000d in 91:24 (): IL_000d: stloc.0 


I installed mono 1.1.10 via rpms under CentOS 4.2 (RHEL clone). I think the 
installation of mono is proper, because programs run fine until the call into 
the assembly.

I have no idea, who to go ahead.


Try

PEVerify.exe third-party-assembly.dll (on Windows)
pedump --verify all third-party-assembly.dll (on Linux)

What's the output?

Robert

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


[Mono-dev] Mono Development [New!]

2005-11-21 Thread Khafan Khafantar
Dear all ,  Hi ,I have worked on several projects in . NET frameworks , I have programmed in C++ , C#, C . Net .Ihave downloaded "Mono"latest releasesource code ; and I decided to work on this project (Mono) . Just it .I`ll be thanking you if you tell me where should I start from .Thank you in advance , :-)  Just a programmer
		 Yahoo! FareChase - Search multiple travel sites in one click.

 

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


Re: [Mono-dev] Compiling mono from source on gentoo 64bit

2005-11-21 Thread Carlos Solorzano
I got around it by first compiling one of the tar balls and using the  
mcs from it.


On Nov 20, 2005, at 11:58 PM, Carlos Solorzano wrote:

Now I am getting an monolite version error, and I just did the get  
latest thing.


make profile-do--default--all profile-do--net_2_0--all
make[4]: Entering directory `/home/root/svn/mcs'
make PROFILE=basic all
make[5]: Entering directory `/home/root/svn/mcs'
make[6]: mcs: Command not found
make[6]: *** [build/deps/basic-profile-check.exe] Error 127
make[6]: Entering directory `/home/root/svn/mcs'
*** The compiler 'mcs' doesn't appear to be usable.
*** Trying the 'monolite' directory.
make[7]: Entering directory `/home/root/svn/mcs'
Corlib not in sync with this runtime: expected corlib version 43,  
found 41.
Download a newer corlib or a newer runtime at http://www.go- 
mono.com/daily.

make[8]: *** [build/deps/basic-profile-check.exe] Error 1
make[8]: Entering directory `/home/root/svn/mcs'
*** The contents of your 'monolite' directory may be out-of-date
*** You may want to try 'make get-monolite-latest'


On Nov 20, 2005, at 11:34 PM, Carlos Solorzano wrote:


That did it, thanks.

--Carlos

On Nov 20, 2005, at 11:27 PM, Thomas Harning Jr. wrote:


I too have had this problem.  Go into the libgc directory under mono
and run the command.  That oughtta fixy it.

On 11/20/05, Carlos Solorzano [EMAIL PROTECTED] wrote:

I just got the latest code from svn and I got stuck on the ./
autogen.sh command :-(

The output I get is pasted below, I tried running libtoolize and it
didn't give an error nor did it look like it did anything. I am  
using

64bit Gentoo, what should I do to fix this problem?


checking for correct ltmain.sh version... no

*** Gentoo sanity check failed! ***
*** libtool.m4 and ltmain.sh have a version mismatch! ***
*** (libtool.m4 = 1.5.18, ltmain.sh = 1.5.6) ***

Please run:

   libtoolize --copy --force

if appropriate, please contact the maintainer of this
package (or your distribution) for help.

configure: error: /bin/sh './configure' failed for libgc



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




--
Thomas Harning Jr.



___
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


[Mono-dev] libgdiplus gcc4 cairo patch

2005-11-21 Thread Wade Berrier
Hey,

I noticed this in SuSE autobuild... looks like gcc4 was updated in
SuSE's build system and now this patch is required to build libgdiplus.

Wade
--- cairo/pixman/src/pixman-remap.h	2005-08-29 20:11:27.0 +0200
+++ cairo/pixman/src/pixman-remap.h	2005-11-21 18:36:11.200147358 +0100
@@ -1,9 +1,9 @@
 #define pixman_add_trapezoids _cairo_pixman_add_trapezoids
-#define INT_pixman_color_to_pixel _cairo_pixman_color_to_pixel
+/* #define INT_pixman_color_to_pixel _cairo_pixman_color_to_pixel */
 #define pixman_color_to_pixel _cairo_pixman_color_to_pixel
 #define composeFunctions _cairo_pixman_compose_functions
 #define fbComposeSetupMMX _cairo_pixman_compose_setup_mmx
-#define INT_pixman_composite _cairo_pixman_composite
+/* #define INT_pixman_composite _cairo_pixman_composite */
 #define pixman_composite _cairo_pixman_composite
 #define fbCompositeCopyAreammx _cairo_pixman_composite_copy_area_mmx
 #define fbCompositeSolidMask_nxx0565Cmmx _cairo_pixman_composite_solid_mask_nxx0565Cmmx


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


[Mono-dev] bugs from svn code

2005-11-21 Thread Carlos Solorzano
Whenever there is a problem with code on SVN do I submit a bug report or 
just an email on the development list?


I have two bugs so far:
First is log4net doesn't display the class name correctly anymore, it 
used to do it fine all the way till 1.1.9.2

For example it says:

DEBUG 20051121 00:00:32: ?

And before it used to have the namespace.ClassName.MethodName()

Second, I am getting an exception on the ID property of the Process 
class right after launching a process, and I have never gotten that 
before on the same exact code:


Unhandled Exception: System.InvalidOperationException: Process ID has 
not been set.

in 0x0005a System.Diagnostics.Process:get_Id ()
in (wrapper remoting-invoke-with-check) System.Diagnostics.Process:get_Id ()
in 0x000ff Proc.Class1:Run ()


The code for that second bug is below, and it launches 30 xcalcs but you 
dont even need to launch that many, I was trying to test a previous bug 
I had found on the process class:


using System;
using System.Diagnostics;
using System.Threading;

namespace Proc
{
   /// summary
   /// Summary description for Class1.
   /// /summary
   class Class1
   {
   /// summary
   /// The main entry point for the application.
   /// /summary
   [STAThread]
   static void Main(string[] args)
   {
   for (int i =0; i  30; i++)
   {
   Thread thread = new Thread(new ThreadStart(Run));
   thread.IsBackground = true;
   thread.Start();
   }
  
  
   Console.ReadLine();

   Console.WriteLine(Exiting);
   }
   private static void Run()
   {
   ProcessStartInfo info = new ProcessStartInfo(xcalc);
   Process p = new Process();
   p.StartInfo = info;
   p.EnableRaisingEvents = true;
   p.Exited +=new EventHandler(p_Exited);
   p.Start();
   while(true)
   {
   Console.WriteLine(DateTime.Now +:+ 
Process.GetProcessById(p.Id).HasExited);

   Thread.Sleep(20);
   }
   }

   private static void p_Exited(object sender, EventArgs e)
   {
   Console.WriteLine(sender + :+e);
   }
   }
}

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


Re: [Mono-dev] Mono Development [New!]

2005-11-21 Thread Gonzalo Paniagua Javier
On Mon, 2005-11-21 at 05:01 -0800, Khafan Khafantar wrote:
 Dear all ,
 Hi ,
  
 I have worked on several projects in . NET frameworks , I have
 programmed in C++ , C# , C . Net .
  
 I have downloaded  Mono latest release source code ; and I decided
 to work on this project (Mono) . Just it .
  
 I`ll be thanking you if you tell me where should I start from .

You could start checking http://www.mono-project.com/Contributing for
any area that you might be interested in.

-Gonzalo



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


Re: [Mono-dev] bugs from svn code

2005-11-21 Thread Gonzalo Paniagua Javier
On Mon, 2005-11-21 at 13:21 -0600, Carlos Solorzano wrote:
 Unhandled Exception: System.InvalidOperationException: Process ID has 
 not been set.
 in 0x0005a System.Diagnostics.Process:get_Id ()
 in (wrapper remoting-invoke-with-check) System.Diagnostics.Process:get_Id ()
 in 0x000ff Proc.Class1:Run ()

This is probably caused by the changes in r53198 and r53199.

-Gonzalo


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


Re: [Mono-dev] bugs from svn code

2005-11-21 Thread Carlos Solorzano


On Nov 21, 2005, at 1:30 PM, Gonzalo Paniagua Javier wrote:


On Mon, 2005-11-21 at 13:21 -0600, Carlos Solorzano wrote:

Unhandled Exception: System.InvalidOperationException: Process ID has
not been set.
in 0x0005a System.Diagnostics.Process:get_Id ()
in (wrapper remoting-invoke-with-check)  
System.Diagnostics.Process:get_Id ()

in 0x000ff Proc.Class1:Run ()


This is probably caused by the changes in r53198 and r53199.

-Gonzalo





Looks like the ID problem is just when using ShellExecute. The ID  
returned from the extern method appears to be 0.


--Carlos

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


Re: [Mono-dev] Remoting URI Exception

2005-11-21 Thread Carlos Solorzano


On Nov 20, 2005, at 8:25 AM, Sebastien Pouliot wrote:


Hello Carlos,

On Sun, 2005-11-20 at 02:29 -0600, Carlos Solorzano wrote:

I upgraded my mono runtime to 1.1.10 and now the remoting code that
was working just fine is giving me the following exception:

Unhandled Exception: System.UriFormatException: Invalid URI: Invalid
port number





This should give you an hint (port number).


But all my other calls to the same remoting object work just fine,  
its only on a complex call involving a parameter which is  
marshalbyref that I get this error. I use that same remote object two  
lines above where the error happens. I am pretty sure any port  
numbers I set are correct, not to mention this works just fine on  
ms.net and mono 1.1.9.2
Anyways, how would I go about printing out the port number? I didnt  
really see an option on the URI exception to print the URI.




If possible try to print the Uri you're using on the Console and,  
if it

seems a valid Uri, post it on the list (or better a bug report).




You may also want to try (if the Uri looks valid) SVN HEAD as many Uri
bugs have been fixed post Mono 1.1.10 (as I'm including support for  
some

2.0 features).


You are right seems like a bit of work has gone into the SVN code, I  
ran my code on the SVN mono and now the exception moved from the  
remoting server to the remoting client, but its the exact same  
exception however now I have a place where I can catch it, although  
there isn't anything I can do with it.


Any pointers will be greatly welcomed.
Thanks,

--Carlos




in 0x00ca9 System.Uri:Parse (System.String uriString)
in 0x0001b System.Uri:ParseUri ()
in 0x00010 System.Uri:Parse ()
in 0x00098 System.Uri:.ctor (System.String uriString, Boolean
dontEscape)
in 0x0001d System.Uri:.ctor (System.String uriString)
in (wrapper remoting-invoke-with-check) System.Uri:.ctor (string)
in 0x00030 System.Net.ServicePointManager:FindServicePoint
(System.String uriString, IWebProxy proxy)
in 0x00032
System.Runtime.Remoting.Channels.Http.HttpClientChannel:SetServicePoi 
nt

(System.String channelURI)
in 0x002f1
System.Runtime.Remoting.Channels.Http.HttpClientChannel:CreateMessage 
Sin

k (System.String url, System.Object remoteChannelData, System.String
objectURI)


My code wasn't changed at all, I literally just installed the new
mono release and reran the code. I will continue adding to this email
as I find more information but its getting a bit late tonight.

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

--
Sebastien Pouliot
email: [EMAIL PROTECTED]
blog: http://pages.infinit.net/ctech/



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


Re: [Mono-dev] Remoting URI Exception

2005-11-21 Thread Sebastien Pouliot
Hello Carlos,

On Mon, 2005-11-21 at 14:56 -0600, Carlos Solorzano wrote:
...
 Anyways, how would I go about printing out the port number? I didnt  
 really see an option on the URI exception to print the URI.
...
 You are right seems like a bit of work has gone into the SVN code, I  
 ran my code on the SVN mono 

If you have mono SVN, then simply edit Uri.cs to print the malformed Uri
as part of the exception text. That would give us the problematic Uri.

 and now the exception moved from the  
 remoting server to the remoting client, but its the exact same  
 exception however now I have a place where I can catch it, although  
 there isn't anything I can do with it.
 
 Any pointers will be greatly welcomed.

-- 
Sebastien Pouliot
email: [EMAIL PROTECTED]
blog: http://pages.infinit.net/ctech/

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


Re: [Mono-dev] Remoting URI Exception

2005-11-21 Thread Carlos Solorzano



If you have mono SVN, then simply edit Uri.cs to print the malformed Uri
as part of the exception text. That would give us the problematic Uri.

 



Now I feel like an idiot, sortof, I was editing the Remoting code to 
find out where the exception was occuring instead of printing the URI 
from the URI class. Eitherway I am almost certain the code happens at 
around line 201 of RealProxy.cs or at least thats where my Console.Outs 
took me :


// todo: remove throw exception from the runtime invoke
   if (null != exc) {
   out_args = null;
   throw exc.FixRemotingException();
   }

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


Re: [Mono-dev] bugs from svn code

2005-11-21 Thread Gonzalo Paniagua Javier
On Mon, 2005-11-21 at 14:05 -0600, Carlos Solorzano wrote:
 On Nov 21, 2005, at 1:30 PM, Gonzalo Paniagua Javier wrote:
 
  On Mon, 2005-11-21 at 13:21 -0600, Carlos Solorzano wrote:
  Unhandled Exception: System.InvalidOperationException: Process ID has
  not been set.
  in 0x0005a System.Diagnostics.Process:get_Id ()
  in (wrapper remoting-invoke-with-check)  
  System.Diagnostics.Process:get_Id ()
  in 0x000ff Proc.Class1:Run ()
 
  This is probably caused by the changes in r53198 and r53199.
 
  -Gonzalo
 
 
 
 
 Looks like the ID problem is just when using ShellExecute. The ID  
 returned from the extern method appears to be 0.

There's a comment in the code saying that there's no way to get the ID,
but... The calling thread can use the WaitForInputIdle function to wait
until the new process has finished its initialization and is waiting for
user input with no input pending. This can be useful for synchronization
between parent and child processes, because CreateProcess returns
without waiting for the new process to finish its initialization. For
example, the creating process would use WaitForInputIdle before trying
to find a window associated with the new process.

-Gonzalo


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


Re: [Mono-dev] Remoting URI Exception

2005-11-21 Thread Carlos Solorzano


On Nov 21, 2005, at 3:09 PM, Sebastien Pouliot wrote:


Hello Carlos,

On Mon, 2005-11-21 at 14:56 -0600, Carlos Solorzano wrote:
...

Anyways, how would I go about printing out the port number? I didnt
really see an option on the URI exception to print the URI.

...

You are right seems like a bit of work has gone into the SVN code, I
ran my code on the SVN mono


If you have mono SVN, then simply edit Uri.cs to print the  
malformed Uri

as part of the exception text. That would give us the problematic Uri.



The exception shows up on the remoting client but the Uri  
Console.WriteLine shows up on the remoting server and it basically  
prints out for the uriString:


192.168.0.193:-1

--Carlos


and now the exception moved from the
remoting server to the remoting client, but its the exact same
exception however now I have a place where I can catch it, although
there isn't anything I can do with it.

Any pointers will be greatly welcomed.


--
Sebastien Pouliot
email: [EMAIL PROTECTED]
blog: http://pages.infinit.net/ctech/



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


[Mono-dev] Managed.Windows.Forms locks X11 up

2005-11-21 Thread Thomas Harning Jr.
When I run the mailclient.exe demo... it seems to operate fine
(excepting the failed mail attempts.. though that could just be due
to GMail requiring a certain form of login.)

The notepad.exe demo, however, causes X11 to hard lock,  keys become
entirely unresponsive [even terminal-changing combinations stop
working].  I can login from another computer to fix up the system,
killing X11.
I ran the test from within X and the last message visible was the
one stating the session/desktop manager.  The window space had shown
up, but just showed nothing (what was underneath the window at the
time).
When outside of X, no session/desktop manager showed up at the
screen, and it hadn't locked up yet.  When I switched back to X, the
only change was that the menu options were rendered (File, Edit..etc).

Something evil must be going on, because normal apps should not be
able to lock X up in such a way.  Firefox 'sometimes' hard locks
X... but I 'think' it is something different... especially due to
the rarity of the Firefox+X11 locks.

Any ideas?
-- 
Thomas Harning Jr.


signature.asc
Description: OpenPGP digital signature
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Managed.Windows.Forms locks X11 up

2005-11-21 Thread Peter Dennis Bartok
Notepad works fine for me. But youre' not really giving much detailed 
information about versions you are running. I use svn head+ on libgdiplus 
and mcs. You can also try all the testapps in the winforms module, for 
example wordpad, to see if that does the same.

We fixed a few possible X lookup situations not too long ago, maybe you're 
running into that.

Also, winforms issues probably find a better audience at 
mono-winforms-list@lists.ximian.com

Cheers,
  Peter

-Original Message-
From: Thomas Harning Jr. [EMAIL PROTECTED]
To: Mono Development List mono-devel-list@lists.ximian.com
Date: 21 November, 2005 15:17
Subject: [Mono-dev] Managed.Windows.Forms locks X11 up


When I run the mailclient.exe demo... it seems to operate fine
(excepting the failed mail attempts.. though that could just be due
to GMail requiring a certain form of login.)

The notepad.exe demo, however, causes X11 to hard lock,  keys become
entirely unresponsive [even terminal-changing combinations stop
working].  I can login from another computer to fix up the system,
killing X11.
I ran the test from within X and the last message visible was the
one stating the session/desktop manager.  The window space had shown
up, but just showed nothing (what was underneath the window at the
time).
When outside of X, no session/desktop manager showed up at the
screen, and it hadn't locked up yet.  When I switched back to X, the
only change was that the menu options were rendered (File, Edit..etc).

Something evil must be going on, because normal apps should not be
able to lock X up in such a way.  Firefox 'sometimes' hard locks
X... but I 'think' it is something different... especially due to
the rarity of the Firefox+X11 locks.

Any ideas?
-- 
Thomas Harning Jr.
 

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


Re: [Mono-dev] AppDomain and web app

2005-11-21 Thread Miguel de Icaza
Hello,

 is it possible for me to use the XSP dll (I think Mono.Webserver.dll)  
 inside my app and have my application talk back and fwd with the web  
 pages without the use of tcp or http remoting? or will the appdomains  
 get in the way?

You will need to setup a communications channel with remoting most
likely.
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Invalid IL code

2005-11-21 Thread Miguel de Icaza
Hello,

 A simple C# programm calling a method of the API works fine on .NET but 
 results the followin error on MONO:
 ** ERROR **: Invalid IL code at IL000d in 91:24 (): IL_000d: stloc.0 

From the information (91:24) it seems like the assembly you are using
has been obfuscated.  Some obfuscators produce images that are not ECMA
compliant, which the Microsoft runtime still happens to consume.

This is the Control Flow Obfuscation feature in the obfuscators.

Mono currently does not support assemblies that have been obfuscated
with that.  We are hoping that the next release will contain code that
will cope with that.

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


[Mono-dev] mcs regression

2005-11-21 Thread Robert Jordan

Hi,

I'm not sure, but it looks like this regression might break
code/stub generators that rely on parameter names:

http://bugzilla.ximian.com/show_bug.cgi?id=76783

Robert

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


Re: [Mono-dev] AppDomain and web app

2005-11-21 Thread Carlos Solorzano


On Nov 21, 2005, at 6:09 PM, Miguel de Icaza wrote:


Hello,


is it possible for me to use the XSP dll (I think Mono.Webserver.dll)
inside my app and have my application talk back and fwd with the web
pages without the use of tcp or http remoting? or will the appdomains
get in the way?


You will need to setup a communications channel with remoting most
likely.



Considering the two appdomains are on the same process, do we still  
need tcp or http remoting? I know there are ways to pass stuff back  
and fwd between appdomains whenever you create the second domain  
however I do not know where asp.net creates the new domain, nor do I  
seem to have access to that information.


--Carlos


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


Fw: [Mono-list] Can't find custom attr

2005-11-21 Thread Jorge Bastos



Are you specifing a static path ?


- Original Message - 
From: Kent 
Boogaart 
To: mono-list@lists.ximian.com 
Sent: Monday, November 21, 2005 12:32 AM
Subject: [Mono-list] Can't find custom attr


Hi 
there,

I’m testing my .NET 2.0 library on 
Mono. I’m just trying to run my unit test suite via the NUnit console exe. The 
problem I’m getting is:


** ERROR **: Can't find custom attr 
constructor image: C:\Documents and Settings\Kent\Desktop\Debug\MyAssembly.dll 
mtoken: 0x0a13
aborting...


(I changed the assembly name above) 
I have tried both on a Mandrake linux install and a win32. Both had the same 
problem.

Any help appreciated. 
Thanks,
Kent



___Mono-list 
maillist - 
Mono-list@lists.ximian.comhttp://lists.ximian.com/mailman/listinfo/mono-list
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Re: Wx.Net

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

Clint Herron wrote:

Hello!

Something I've been wondering lately is if there should be a link to
Wx.Net ( http://wxnet.sourceforge.net/ ) on the Mono homepage? It
might be mutually beneficial Mono users to know that there are more
options than just GTK# and Windows.Forms for Windows/Linux/Mac GUI
developement, and they could probably stand to get more notice. I was
using Mono for a while before I knew of Wx.Net, simply because it was
flying under the radar.

Just a thought!

Respectfully,
clint


I agree with you.

Regards,

Andrew  [ knocte ]

--

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


[Mono-list] RE: Can't find custom attr

2005-11-21 Thread Kent Boogaart








Some more info on this: I dont get
this problem when running a release build of my assembly. Thats enough
for me to claim my library runs on mono, but I guess itd be better to
know what causes this problem. If theres any more info needed, Id
be happy to oblige.



Thanks,

Kent











From: Kent Boogaart
[mailto:[EMAIL PROTECTED] 
Sent: Monday, 21 November 2005
11:02 AM
To: 'mono-list@lists.ximian.com'
Subject: Can't find custom attr





Hi there,



Im testing my .NET 2.0 library on Mono. Im
just trying to run my unit test suite via the NUnit console exe. The problem
Im getting is:





** ERROR **: Can't find custom attr constructor image: C:\Documents
and Settings\Kent\Desktop\Debug\MyAssembly.dll mtoken: 0x0a13

aborting...





(I changed the assembly name above) I have tried both on a
Mandrake linux install and a win32. Both had the same problem.



Any help appreciated. Thanks,

Kent






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


[Mono-list] .wapi problem with mod_mono

2005-11-21 Thread Schneickert, Andre
Hello,

I'm struggeling with getting mod_mono tu run under Lineox 4.053 (equal to Red 
Hat Enterprise Server 4).
The installed Apache version is 2.052. Apache runs with user and group apache.
The mono and mod_mono versions are 1.1.10 (mono installed from rpm, mod_mono 
compiled from source).

I set up the test directory /usr/lib/xsp/test in httpd.conf as follows:

LoadModule mono_module modules/mod_mono.so
Alias /test /usr/lib/xsp/test
MonoApplications test:/usr/lib/xsp/test
Location /test
SetHandler mono
/Location

Restarting Apache gave me these errors first:

** (/usr/lib/pkgconfig/../../lib/xsp/1.0/mod-mono-server.exe:6380): CRITICAL 
**: _wapi_shm_attach: mmap error: Permission denied

** ERROR **: file handles.c: line 125 (shared_init): assertion failed: 
(_wapi_shared_layout != NULL)
aborting...

I've read a posting in this list from someone facing the same problem.
I followed the advice given to him but unfortunately, I didn't succeed. It 
looks like a permission problem with /tmp/.wapi.
The directory ownership was set with apache.apache. That resulted in the above 
errors. Changing the owner to root results in this error:

/tmp/.wapi: Operation not permitted

The test page works just fine with xsp, but I'd like to get it to run with 
Apache...

Gonzales mentioned in a post:

Make sure that the user running apache is the same that runs
mod-mono-server and owns /tmp/.wapi directory.

I'm new to Linux, so please excuse my question:
How can I change the account under which the mod-mono-server will run?
Apache runs under user and group apache. How can I run mod-mono-server under 
the same account?

Any help is greatly appreciated!

Regards,
André
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Install Mono on Solaris 7 Sparc

2005-11-21 Thread Enrique Garcia Ayuda
Hi,

   I'm trying to build Mono  on Solaris 5.7 in order to start
WebServices, I get you address from Mono List, please can you tell me
if someone has succeeded and send me info, links, HOWTO  or something
you get, any help will be useful.

   Regards
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] is System.Net missing?

2005-11-21 Thread Arx Henrique
Hi all

I try to use System.Net in my application, but when i try to compile,
i get a error saying that could not found System.Net in namespace. I
try to use -r:System.Net but dont works too.

I use Debian unstable with all these packages:

ii  libmono-dev1.1.9.2-1
libraries for the Mono JIT - Development fil
ii  libmono0   1.1.9.2-1
libraries for the Mono JIT
ii  mono   1.1.9.2-1 Mono
CLI (.NET) runtime
ii  mono-assemblies-base   1.1.9.2-1 Mono
class library - transistion package
ii  mono-classlib-1.0  1.1.9.2-1 Mono
class library (1.0)
ii  mono-classlib-1.0-dbg  1.1.9.2-1 Mono
class library (1.0) - debug symbols
ii  mono-classlib-2.0  1.1.9.2-1 Mono
class library (2.0)
ii  mono-classlib-2.0-dbg  1.1.9.2-1 Mono
class library (2.0) - debug symbols
ii  mono-common1.1.9.2-1
common files for Mono
ii  mono-devel 1.1.9.2-1 Mono
CLI (.NET) runtime with development too
ii  mono-gac   1.1.9.2-1 Mono GAC tool
ii  mono-jay   1.1.9.2-1
LALR(1) parser generator oriented to Java/.N
ii  mono-jit   1.1.9.2-1 fast
CLI (.NET) JIT compiler for Mono
ii  mono-mcs   1.1.9.2-1 Mono
C# compiler
ii  mono-utils 1.1.9.2-1 Mono utilities
ii  mono-xsp   1.0.5-2  
simple web server to run ASP.NET application
ii  monodevelop0.8-1
C#/Boo/Java/Nemerle/ILasm Development Enviro
ii  monodoc1.1.9-1   Mono
documentation viewer
ii  monodoc-base   1.1.9-1  
shared MonoDoc binaries
ii  monodoc-browser1.1.9-3  
MonoDoc GTK+ based viewer
ii  monodoc-gecko2.0-manual0.11-1   
compiled XML documentation for Gecko#2
ii  monodoc-gtk2.0-manual  2.3.92-2 
compiled XML documentation for Gtk#2
ii  monodoc-manual 1.1.9-1  
compiled XML documentation from the Mono pro

cheers
Arx Cruz
--
A fé remove montanas, mas eu prefiro a dinamite
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Re: Wx.Net

2005-11-21 Thread ted leslie
i found out about wx.net (which i use alot)
via the mono web site, so if its not referenced there any more, then it must of 
got
removed. I know when I saw it there 8-9 months ago (or more) it was not
looked at favourably because little weight was given to the fact it worked on 
all three 
Linux/Win32/OSX. Weight was assigned heavily to gtk#. IF gtk# could be built on 
native OSX foundations (instead of requiring X11 install) I do believe that 
would be
the cats ass, but it seems they are far from that right now.

-tl



On Sat, 19 Nov 2005 21:48:15 +0100
Andrés G. Aragoneses [EMAIL PROTECTED] wrote:

 Clint Herron wrote:
  Hello!
  
  Something I've been wondering lately is if there should be a link to
  Wx.Net ( http://wxnet.sourceforge.net/ ) on the Mono homepage? It
  might be mutually beneficial Mono users to know that there are more
  options than just GTK# and Windows.Forms for Windows/Linux/Mac GUI
  developement, and they could probably stand to get more notice. I was
  using Mono for a while before I knew of Wx.Net, simply because it was
  flying under the radar.
  
  Just a thought!
  
  Respectfully,
  clint
 
 I agree with you.
 
 Regards,
 
   Andrew  [ knocte ]
 
 -- 
 
 ___
 Mono-list maillist  -  Mono-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-list
 
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] is System.Net missing?

2005-11-21 Thread Atsushi Eno
Hi,

 I try to use System.Net in my application, but when i try to compile,
 i get a error saying that could not found System.Net in namespace. I
 try to use -r:System.Net but dont works too.

-r option is to specify an *assembly*, not a *namespace*. Unless there
is
System.Net.dll (it actually isn't) mcs reports an error (I don't think
mcs reports something like could not found System.Net in *namespace*).

You don't have to specify -r:System.dll or -r:mscorlib.dll (unless you
use
-noconfig and/or -nostdlib).

Atsushi Eno


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


Re: [Mono-list] is System.Net missing?

2005-11-21 Thread Arx Henrique
Sorry, should be my mistake, i'm try again compile, and just works.
Thanks!

On 11/21/05, Atsushi Eno [EMAIL PROTECTED] wrote:
 What is System.Sockets?

 I guess, you are writing the exact source you are compiling (which will
 result in confusion). TcpClient is in System.dll, which you don't have
 to specify with -r option.

 (BTW, you had better just copy the exact error message than interpreting
 by your own. No one can guess what you think exactly, but can guess what
 might be happening from the exact error message ;-)

 Cheers,
 Atsushi Eno

  I'm using:
 
  using System.Net;
  using System;
  using System.Sockets;
 
  public class tcp {
TcpClient client = new TcpClient();
..
  }
 
  and try compile with mcs file.cs but show up the message saying that
  could not found System.Net
 
  did you know what's library i need add to my project to work ?
 
  On 11/21/05, Atsushi Eno [EMAIL PROTECTED] wrote:
   Hi,
  
I try to use System.Net in my application, but when i try to compile,
i get a error saying that could not found System.Net in namespace. I
try to use -r:System.Net but dont works too.
  
   -r option is to specify an *assembly*, not a *namespace*. Unless there
   is
   System.Net.dll (it actually isn't) mcs reports an error (I don't think
   mcs reports something like could not found System.Net in *namespace*).
  
   You don't have to specify -r:System.dll or -r:mscorlib.dll (unless you
   use
   -noconfig and/or -nostdlib).
  
   Atsushi Eno
  
  
  
 
 
  --
  A fé remove montanas, mas eu prefiro a dinamite




--
A fé remove montanas, mas eu prefiro a dinamite
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] DataGridCommandEventHandler not being invoked

2005-11-21 Thread simon godden
I've created a data grid - no problem.

Now I want to be notified when the Edit button is pressed. But my handler is never invoked.

My code looks like this:

public class EntityTable : DataGrid
{
 private static ILog log = LogManager.GetLogger(typeof(EntityTable));

 public EntityTable(string classname) : base()
 {
 AutoGenerateColumns = false;


EditCommand += new DataGridCommandEventHandler(this.EditCommandClicked);

EntityList list =
GenericServiceFactory.Service.GetListForEntity(classname);
 CreateColumns(list);
 DataSource = CreateDataSource(list);
 DataBind();


 }

 public void EditCommandClicked(object source, DataGridCommandEventArgs e)
 {
 Console.WriteLine(ASD+e);
 }

 private void CreateColumns(EntityList list)
 {

EditCommandColumn col1 = new EditCommandColumn();

col1.ButtonType = ButtonColumnType.PushButton;
 col1.EditText = Edit;
 col1.UpdateText = Update;
 col1.CancelText = Cancel;

 Columns.Add(col1);


int nbrCols = list.Lines[0].Cells.Length;
 for (int i=0; inbrCols; i++)
 {

BoundColumn bc = new BoundColumn();

bc.DataField = Column +i;

Columns.Add(bc);
 }

 }

Can anyone see anything wrong?-- Simon Godden
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Bugzilla: missing category

2005-11-21 Thread Julien Sobrier
Hello,
there is no component Mono.Data under Mono: Class Libraries. How can
I add and RFE to add it into the bugzilla. I didn't find a way to report
a bug about bugzilla itself.

Julien
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Re: monodevelop won't run

2005-11-21 Thread Tim Finnegan (sent by Nabble.com)

What you need is libgnome2.0-cil.
I've got Kubuntu Hoary, and I've found this library installing gtk-sharp-examples-unstable.

Hope this helps.

Sent from the Mono - General forum at Nabble.com.
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list