[Mono-devel-list] Problems with MONO and XSP

Tiago Lima tiago.lima at vianw.pt
Wed Sep 17 15:09:37 EDT 2003


Hi all,

I've got some problems with mono and xsp...
I present them here:

--------------------------------
DataGridTest

**** Uses:
PostgreSQL 7.3.4
Npgsql 0.5 (for mono)
Mono JIT compiler version 0.26, (C) 2002, 2003 Ximian, Inc.
Mono C# compiler version 0.26.0.0
XSP 0.5

**** Files:
bin/Npgsql.dll (for mono)
DataGridTest.aspx
DataGridTest.aspx.cs
compile.sh

**** To compile:
mcs -recurse:*.cs -reference:System.Web.dll -r:System.Data -r:bin/Npgsql.dll
/t:library -out:bin/Tests.dll

or

./compile.sh

**** Behaviour:
 - Clicking on the PushButton "Add" it wont know the ID of the row.
            - see in the OnItemCommand method : item.Cells[0].Text
 - It does not advance the pages.

--------------------------------
BitmapTest

**** Uses:
Mono JIT compiler version 0.26, (C) 2002, 2003 Ximian, Inc.
Mono C# compiler version 0.26.0.0
XSP 0.5

**** Files:
BitmapTest.cs
    Content:
            using System.Drawing;

            namespace BitmapTest
            {
             public class BitmapTester
             {
              public static void Main(string[] args)
              {
               Bitmap bitmap = new Bitmap(100, 100);
              }
             }
            }

**** To Compile:
mcs -r:System.Drawing.dll BitmapTest.cs

**** Behaviour:
    - Does not compile !?

mcs -r:System.Drawing.dll BitmapTest.cs
BitmapTest.cs(7) error CS0246: Cannot find type `Bitmap'
Compilation failed: 1 error(s), 0 warnings

It could be an mcs bug....
Another is when I use in a .aspx page with (sorry didnt make a test with the
source, if you need it I could make them :) ):

... = new Bitmap(original, width, height);

or even (?):

... = new Bitmap(width, height);

I get:

System.TypeInitializationException: An exception was thrown by the type
initializer for System.Drawing.XrImpl.GDK --->
System.MissingMethodException: A missing method exception has occurred.
in <0x00042> 06 System.Drawing.XrImpl.GDK:gdk_init (int,intptr)
in <0x0002a> 00 System.Drawing.XrImpl.GDK:.cctor ()
--- End of inner exception stack trace ---
in (unmanaged)
/opt/gnome/lib/libmono.so.0(mono_raise_exception+0x20)[0x40091b57]
in (unmanaged)
/opt/gnome/lib/libmono.so.0(mono_runtime_class_init+0x27c)[0x4008e80d]
in (unmanaged) /opt/gnome/lib/libmono.so.0 [0x40042f3a]
in (unmanaged)
/opt/gnome/lib/libmono.so.0(mono_compile_method+0x49)[0x4008e917]
in (unmanaged)
/opt/gnome/lib/libmono.so.0(mono_arch_create_jit_trampoline+0xf5)
[0x40080045]
in (unmanaged) /opt/gnome/lib/libmono.so.0(mono_class_vtable+0x5aa)
[0x4008f32b]
in (unmanaged) /opt/gnome/lib/libmono.so.0 [0x40042f31]
in (unmanaged) /opt/gnome/lib/libmono.so.0(mono_compile_method+0x49)
[0x4008e917]
in (unmanaged)
/opt/gnome/lib/libmono.so.0(mono_arch_create_jit_trampoline+0xf5)
[0x40080045]
in (unmanaged) /opt/gnome/lib/libmono.so.0(mono_arch_patch_code+0x201)
[0x4007c410]
in (unmanaged) /opt/gnome/lib/libmono.so.0(mono_codegen+0x353) [0x40041b22]
in (unmanaged) /opt/gnome/lib/libmono.so.0 [0x400426a6]
in (unmanaged) /opt/gnome/lib/libmono.so.0 [0x40042e56]
in (unmanaged) /opt/gnome/lib/libmono.so.0(mono_compile_method+0x49)
[0x4008e917]
in (unmanaged) /opt/gnome/lib/libmono.so.0 [0x4002c20b]
in <0x00076> 08 System.Drawing.XrImpl.Bitmap:CommonInit (int,int,bool)
in <0x00019> 00 System.Drawing.XrImpl.Bitmap:CommonInit (int,int)
in <0x00078> 08 System.Drawing.XrImpl.Bitmap:CommonInit (int,int)
in <0x00029> 00 System.Drawing.XrImpl.Bitmap:.ctor (int,int)
in <0x00078> 08 System.Drawing.XrImpl.Bitmap:.ctor (int,int)
in <0x00027> 00 System.Drawing.XrImpl.BitmapFactory:Bitmap (int,int)
in <0x00034> 00 System.Drawing.Bitmap:.ctor (int,int)
in <0x00078> 08 System.Drawing.Bitmap:.ctor (int,int)
in <0x0013c> 00 FLMID.Web.Content.ImageGenerator:Page_Load
(object,System.EventArgs)
in <0x0005a> 01 System.MulticastDelegate:invoke_void_object_EventArgs
(object,System.EventArgs)
in <0x00084> 00 System.Web.UI.Control:OnLoad (System.EventArgs)
in <0x00031> 00 System.Web.UI.Control:LoadRecursive ()
in <0x000be> 00 System.Web.UI.Page:ProcessRequest (System.Web.HttpContext)
in <0x00191> 00 .ExecuteHandlerState:Execute ()
in <0x0004e> 00
.StateMachine:ExecuteState(System.Web.HttpApplication/IStateHandler,bool&)

--------------------------------
TextAreaTest

**** Uses:
Mono JIT compiler version 0.26, (C) 2002, 2003 Ximian, Inc.
Mono C# compiler version 0.26.0.0
XSP 0.5

**** Files:
TextArea.aspx
    Content: <%@ Page Language="C#" %> <textarea runat="server"></textarea>

**** Behaviour:
    - SegmentationFault.
    - When using <textarea></textarea> it works fine, so I guess the error
must be in the HtmlTextArea control...

--------------------------------

Thanks in advance,
    Tiago Lima
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tests.tar.gz
Type: application/x-gzip
Size: 66656 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20030917/ca4fd46f/attachment.gz 


More information about the Mono-devel-list mailing list