[Mono-winforms-list] Re: [Mono-list] Porting Windows Application

Peter Dennis Bartok peter at novonyx.com
Wed May 18 11:51:49 EDT 2005


The error you're posting now is a different one than the first one. If you 
read it, you will see it tells you that it cannot find the libX11 library. 
My guess would be that you are missing the x11-devel rpm. Try using yast or 
red-carpet to install it, or, if you are familiar enough with Linux, you can 
also just create a symbolic link for libX11.so; for example, on my system it 
would be: "ln -s /usr/X11R6/lib/libX11.so.6.2 /usr/X11R6/lib/libX11.so"

Cheers,
  Peter


-----Original Message-----
From: "Paul Thompson" <pault at HiWAAY.net>
To: "Peter Dennis Bartok" <peter at novonyx.com>
Date: 18 May, 2005 09:16
Subject: Re: [Mono-list] Porting Windows Application


>Peter Dennis Bartok wrote:
>Paul,
>
>Maybe you can provide some details as to what the app is doing. It obvious
>is calling AddMessageFilter, and SWF is failing. Any chance you can log a
>bug and attach the code snippet that causes the exception (or even better,
>make a small sample app that causes the same exception) so we have 
>something
>to go by and fix? Or, maybe you could make the mathtest source available to
>myself or someone else on the SWF team to be able to fix this.
>
>There should be no need to replace any winforms code with gtk#, we just 
>need
>to fix whatever bugs you're running into.
>
>Peter
>
>-----Original Message-----
>From: "Paul Thompson" <pault at HiWAAY.net>
>To: <mono-list at lists.ximian.com>
>Date: 17 May, 2005 09:40
>Subject: [Mono-list] Porting Windows Application
>
>
>
>Peter,
>
>Thanks for the response. First I don't have Visual Studio .NET service pack 
>1 installed yet, and that may be the problem. I compiled a simple Windows 
>application with a blank form and got the following result when I ran it 
>with mono.
>
>Paul
>
>
>~/cs/test> mono WinTest.exe
>Compat mode: the request from /home/pat/cs/test/WinTest.exe to load 
>System.Windows.Forms was remapped (http://www.go-mono.com/remap.html)
>Compat mode: the request from /home/pat/cs/test/WinTest.exe to load System 
>was remapped (http://www.go-mono.com/remap.html)
>
>Unhandled Exception: System.TypeInitializationException: An exception was 
>thrown by the type initializer for System.Windows.Forms.XplatUI ---> 
>System.DllNotFoundException: libX11
>in <0x0004a> (wrapper managed-to-native) 
>System.Windows.Forms.XplatUIX11:XOpenDisplay (intptr)
>in <0x00092> System.Windows.Forms.XplatUIX11:.ctor ()
>in <0x00044> System.Windows.Forms.XplatUIX11:GetInstance ()
>in <0x0004e> System.Windows.Forms.XplatUI:.cctor ()
>--- End of inner exception stack trace ---
>
>in (unmanaged) 0x80b3a5d
>in <0x000c4> System.Windows.Forms.Control:get_CreateParams ()
>in <0x0020a> System.Windows.Forms.Control:.ctor ()
>in <0x00014> FormParentWindow:.ctor (System.Windows.Forms.Form)
>in <0x00029> (wrapper remoting-invoke-with-check) FormParentWindow:.ctor 
>(System.Windows.Forms.Form)
>in <0x00039> System.Windows.Forms.Form:get_CreateParams ()
>in <0x0020a> System.Windows.Forms.Control:.ctor ()
>in <0x0000d> System.Windows.Forms.ScrollableControl:.ctor ()
>in <0x0000a> System.Windows.Forms.ContainerControl:.ctor ()
>in <0x00010> System.Windows.Forms.Form:.ctor ()
>in <0x00017> WinTest.Form1:.ctor ()
>in <0x00021> (wrapper remoting-invoke-with-check) WinTest.Form1:.ctor ()
>in <0x0001a> WinTest.Form1:Main ()
>
>The source is:
>
>
>using System;
>using System.Drawing;
>using System.Collections;
>using System.ComponentModel;
>using System.Windows.Forms;
>using System.Data;
>
>namespace WinTest
>{
> /// <summary>
> /// Summary description for Form1.
> /// </summary>
> public class Form1 : System.Windows.Forms.Form
> {
> /// <summary>
> /// Required designer variable.
> /// </summary>
> private System.ComponentModel.Container components = null;
>
> public Form1()
> {
> //
> // Required for Windows Form Designer support
> //
> InitializeComponent();
>
> //
> // TODO: Add any constructor code after InitializeComponent call
> //
> }
>
> /// <summary>
> /// Clean up any resources being used.
> /// </summary>
> protected override void Dispose( bool disposing )
> {
> if( disposing )
> {
> if (components != null)
> {
> components.Dispose();
> }
> }
> base.Dispose( disposing );
> }
>
> #region Windows Form Designer generated code
> /// <summary>
> /// Required method for Designer support - do not modify
> /// the contents of this method with the code editor.
> /// </summary>
> private void InitializeComponent()
> {
> this.components = new System.ComponentModel.Container();
> this.Size = new System.Drawing.Size(300,300);
> this.Text = "Form1";
> }
> #endregion
>
> /// <summary>
> /// The main entry point for the application.
> /// </summary>
> [STAThread]
> static void Main()
> {
> Application.Run(new Form1());
> }
> }
>}
>
>
>
>
> 



More information about the Mono-winforms-list mailing list