Jordi Mas | 1 Apr 2005 11:14

Re: GDI Problem

El dj 31 de 03 del 2005 a les 20:02 +1000, en/na Benjamin Dittes va
escriure:
> Hi,
>  
> I've been trying to get mono-1.1.5 running for two days now, still got
> the following problem:
>  
> - Building libgdiplus-1.1.5 goes without problems, but testgdi says:
> got st: -1073744776 expected Ok
> ** (process:13730): CRITICAL **: GdipDrawImageRect: assertion `image-
> >type == imageBitmap' failed
> got st: 1079018640 expected Okfree(): invalid pointer 0x40508490!
> jpg drawn 
> got st: -1073744776 expected OkSegmentation fault
> 
> - Building mono-1.1.5 runs smoothly too, but running a WinForms app
> says, that System.Drawing.GDIPlus.dll is missing.
>  
> Any ideas?

There is a possible bug. Please, fill a bug report into
http://bugzilla.ximian.com and assign the bug to me. I'll look into that
next week.

Thanks!

--

-- 
Jordi Mas i Hernàndez - Mono development team - http://www.mono-project.com
Homepage and LiveJournal at http://www.softcatala.org/~jmas

(Continue reading)

Timothy Graupmann | 2 Apr 2005 19:54
Picon
Favicon

Re: WinForm Progress

Hey Peter. I see the status page and somebody is working on the FileDialogs
which is great!
http://svn.myrealbox.com/mwf/owners.html

How is the progress coming for System.Windows.Forms.Screen? Where would that
fall on the progress page?

Thanks again,
~Tim

--- Peter Dennis Bartok <peter <at> novonyx.com> wrote:
> Yeah, the list only lists classes that have their own 'window' (ie based or 
> derived from control).
> 
> You didn't overlook something, it's just that you may not be patient enough. 
> MWF is simply not complete yet. Screen will get committed when we have some 
> other things in the drivers resolved, since it depends on them.
> 
> Once a message 'MWF' is complete goes around it's ok to point out missing 
> classes, but until then you can assume that we are aware of it, probably 
> even have a version that's just not checked in yet, but are not finished 
> yet.
> 
> Cheers,
>   Peter
> 
> -----Original Message-----
> From: "Timothy Graupmann" <tgraupmann <at> yahoo.com>
> To: "Jordi Mas" <jordi <at> ximian.com>; "Kazuki Oikawa" <kazuki <at> panicode.com>
> Cc: <mono-winforms-list <at> lists.ximian.com>
(Continue reading)

Bill Keirstead | 1 Apr 2005 21:31

libgdiplus 1.1.5 build problem (MacOSX)

Hi all.  I am very new to the mono community and am having a problem 
building lbgdiplus-1.1.5 from the source.  This is probably a FAQ, so 
feel free to point me there if appropriate.

I am using MacOSX 10.3.8 and have built mono-1.1.6 from source.  That 
works as expected.  I then downloaded the libgdiplus-1.1.5 source and 
tried to build that with no luck.

To ensure that the problem is not any existing configuration, I have 
performed a clean install of the OS, installed the X11 SDK, installed 
mono and it's dependencies.  To build libgdiplus, I simply change to 
the source directory, run "./configure --disable-glitz" and then run 
make.

I then get the following error:

  gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libpixman/src -I../cairo/src 
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -Wall 
-Werror -Wno-unused -Wno-format -no-cpp-precomp -g -O2 -pthread -MT 
adjustablearrowcap.lo -MD -MP -MF .deps/adjustablearrowcap.Tpo -c 
adjustablearrowcap.c  -fno-common -DPIC -o .libs/adjustablearrowcap.o
gcc: unrecognized option `-pthread'
In file included from adjustablearrowcap.c:27:
gdip.h:798: error: parse error before "FcFontSet"
gdip.h:798: warning: no semicolon at end of struct or union
gdip.h:800: warning: type defaults to `int' in declaration of `config'
< cut rest of errors>

Any suggestions on what I am missing?

(Continue reading)

Shi Jin | 3 Apr 2005 17:54
Picon
Favicon

Error in SaveFileDialog using mono-1.1.5-r1

Hi there,

I have written a C# code under windows .net  and I am
able to compile it without any problem using
mono-1.1.5-r1 under my gentoo linux. But when I ran
it, I have the error message below. It is basically
the problem of SaveFileDialog form, if I remove it
from my code then everything is fine and I see the
same winform as under windows. 
Please advise.
Thanks a lot.
************ Error Message *****************
seki <at> jinshi contest $ mono FractalClientWin32.exe
Mono System.Windows.Forms Assembly [Revision: 41731;
built: 2005/2/15 5:56:12]
Keyboard: United States keyboard layout (phantom key
version)
Info: Using render cleanup parameters
8/20/23/24/25/26.
Disposing window 1E00003 (whole: 1E00002)
Disposing window 1E00007 (whole: 1E00006)
Disposing window 1E0000B (whole: 1E0000A)

Unhandled Exception: System.InvalidCastException:
Cannot cast from source type to destination type.
in <0x00141>
System.Windows.Forms.FileDialog+FileDialogPanel+FileListView:.ctor
(System.Windows.Forms.FileDialogPanel fileDialogPanel)
in (wrapper remoting-invoke-with-check)
FileListView:.ctor
(Continue reading)

Shi Jin | 3 Apr 2005 23:42
Picon
Favicon

Re: Error in SaveFileDialog using mono-1.1.5-r1

Never mind.
I just upgraded to verion 1.1.6 and the error message
is gone. But it seems like there is some problem
actually save files to disk.

--- Shi Jin <jinzishuai <at> yahoo.com> wrote:
> Hi there,
> 
> I have written a C# code under windows .net  and I
> am
> able to compile it without any problem using
> mono-1.1.5-r1 under my gentoo linux. But when I ran
> it, I have the error message below. It is basically
> the problem of SaveFileDialog form, if I remove it
> from my code then everything is fine and I see the
> same winform as under windows. 
> Please advise.
> Thanks a lot.
> ************ Error Message *****************
> seki <at> jinshi contest $ mono FractalClientWin32.exe
> Mono System.Windows.Forms Assembly [Revision: 41731;
> built: 2005/2/15 5:56:12]
> Keyboard: United States keyboard layout (phantom key
> version)
> Info: Using render cleanup parameters
> 8/20/23/24/25/26.
> Disposing window 1E00003 (whole: 1E00002)
> Disposing window 1E00007 (whole: 1E00006)
> Disposing window 1E0000B (whole: 1E0000A)
> 
(Continue reading)

Olaf Leidinger | 5 Apr 2005 12:57
Picon

running winforms examples


Hello!

I tried both mono-1.1.6 and the latest svn-version, both produce the
same result when running any of the examples on svn:

 mono button/swf-buttons.exe
Mono System.Windows.Forms Assembly [Revision: 41731; built: 2005/2/15
5:56:12]

Unhandled Exception: System.TypeInitializationException: An exception
was thrown by the type initializer for System.Windows.Forms.XplatUI --->
System.Reflection.TargetInvocationException: Exception has been thrown
by the target of an invocation. ---> System.NotSupportedException:
Either image format is unknown or you don't have the required libraries
for this format.
in <0x0014a> System.Drawing.GDIPlus:CheckStatus (Status status)
in <0x000ca> System.Drawing.Image:InitFromStream (System.IO.Stream stream)
in (wrapper remoting-invoke-with-check)
System.Drawing.Image:InitFromStream (System.IO.Stream)
in <0x00104> System.Drawing.Bitmap:.ctor
(System.Runtime.Serialization.SerializationInfo info, StreamingContext
context)
in <0x00000> <unknown method>
in (wrapper managed-to-native)
System.Reflection.MonoCMethod:InternalInvoke (object,object[])
in <0x0006f> System.Reflection.MonoCMethod:Invoke (System.Object obj,
BindingFlags invokeAttr, System.Reflection.Binder binder,
System.Object[] parameters, System.Globalization.CultureInfo culture)---
End of inner exception stack trace ---
(Continue reading)

Bill Middleton | 5 Apr 2005 13:19
Picon

Re: running winforms examples

Looks like you may have neglected to install libgdiplus?  It's reqd. for SWF.

You can get it from SVN.

Bill


On Apr 5, 2005 12:57 PM, Olaf Leidinger <leidola <at> gmail.com> wrote:
> Unhandled Exception: System.TypeInitializationException: An exception
> was thrown by the type initializer for System.Windows.Forms.XplatUI --->
> System.Reflection.TargetInvocationException: Exception has been thrown
> by the target of an invocation. ---> System.NotSupportedException:
> Either image format is unknown or you don't have the required libraries
> for this format.
> in <0x0014a> System.Drawing.GDIPlus:CheckStatus (Status status)


Olaf Leidinger | 5 Apr 2005 15:42
Picon

Re: running winforms examples


Hello!

Bill Middleton schrieb:
> Looks like you may have neglected to install libgdiplus? It's reqd. for SWF.
Ah, yes... my libgdiplus was too old, that's it.

Now it works properly ;-)

Thanks a lot,

Ciao,

Olaf
Whalley Anthony | 5 Apr 2005 16:44

Gtk dialogs in system windows forms(possible double post)

Hi Guys
   I have ported a chess UI to mono.

   http://tontsblog.hosting365.ie/blog/ 

   Is there a recommended way to call a GTK dialog
   from a system.windows application as my app seems
   to hang now and again when I use the following code.

//In a Windows.System.Forms app. 

main code(){
FileChooser.Driver dlg = new FileChooser.Driver() ;
string strXMLFile = dlg.GetFileName() ;
}

///FileChooser code
using System;
using Gtk;
using Glade;

namespace FileChooser
{
/// <summary>
/// Summary description for Driver.
/// </summary>
public class Driver
{
         #region Glade Widgets

         [Widget] Gtk.FileChooser dlgFile;

         #endregion

         /// <summary>
         /// The main entry point for the application.
         /// </summary>
         [STAThread]
         static void Main()
         {
                 new Driver();
         }

         public Driver()
         {
                    Application.Init();
         }

         public string GetFileName()
         {
                 FileSelection fDlg = new FileSelection("Choose a File");
                 fDlg.Modal = true;

                 int nRc = fDlg.Run();
                 fDlg.Hide();

                 if(nRc == (int)ResponseType.Ok)
                 {
                         return fDlg.Filename;
                 }
                 else
                 {
                         return "";
                 }

         }
}
}

Thanks

Tont
_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Wei Weng | 7 Apr 2005 19:05

How do I force a control to update/refresh/invalidate?

Hi all.

Does Mono (1.1.6, Mac) have a working ListView control update method? I 
tried both Update and Refresh in container's layout event handler. It 
doesn't seem to work.

Thanks

Wei

_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list


Gmane