[Mono-list] Announcing Mono 2.2 Preview 1...

Petit Eric surfzoid at gmail.com
Thu Dec 4 15:22:04 EST 2008


just in case :-) : https://bugzilla.novell.com/index.cgi

2008/12/4 Rodrigo Kumpera <kumpera at gmail.com>:
> Please open a bug report with the information you know. If the binary
> contains proprietary code you can
> mark it as novell only so it won't be publicly exposed.
>
> On Thu, Dec 4, 2008 at 5:20 PM, Andrus <kobruleht2 at hot.ee> wrote:
>>
>> Exception occurs in line
>>
>> browseForm.DoInit("", ' ', ' ');
>>
>> I  tried to create testcase below which corresponds to application code
>> but
>> this testcase works OK.
>> No idea what I'm missing in testcase.
>> I can provide binary file.
>>
>> Andrus.
>>
>> using System;
>> using System.ComponentModel;
>> using System.Windows.Forms;
>> static class Program
>> {
>> static void Main()
>> {
>> DocumentToolsStripMenuItemClick<DokG, RidG>(null, "", ' ', ' ');
>> }
>>
>> internal static void DocumentToolsStripMenuItemClick<TDoc, TRow>(object
>> sender, string formSource,
>> char formType, char subtype)
>> where TDoc : DokBase, IDok, INotifyPropertyChanged, new()
>> where TRow : EntityBase, IRid, new()
>> {
>> Type docType = typeof(TDoc);
>> Type rowType = typeof(TRow);
>> Type list = typeof(Dok);
>> Type gt = typeof(DocumentForm<,,>).MakeGenericType(list, docType,
>> rowType);
>> var ctor = gt.GetConstructor(Type.EmptyTypes);
>> BrowseForm browseForm;
>> browseForm = (BrowseForm)(ctor.Invoke(new object[] { }));
>> browseForm.FormName = "";
>> browseForm.FormID = "";
>> //** ERROR **: file method-to-ir.c: line 7306 (mono_method_to_ir2):
>> assertion failed: (!callvirt_this_arg)
>> //aborting...
>> browseForm.DoInit("", ' ', ' ');
>> }
>> }
>> partial class RidG : Rid
>> {
>> }
>> partial class RidG : IRid
>> {
>> }
>> public partial class Rid : EntityBase, INotifyPropertyChanged
>> {
>> public event PropertyChangedEventHandler PropertyChanged;
>> protected virtual void OnPropertyChanged(string propertyName)
>> {
>> if (PropertyChanged != null)
>> {
>> PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
>> }
>> }
>> }
>> public class DokG : Dok
>> {
>> }
>> public partial class Dok : DokBase, INotifyPropertyChanged
>> {
>> public event PropertyChangedEventHandler PropertyChanged;
>> protected virtual void OnPropertyChanged(string propertyName)
>> {
>> }
>> }
>> public abstract class DokBase : EntityBase, IDok
>> {
>> }
>> public interface IRid
>> {
>> }
>> public abstract class EntityBase
>> {
>> }
>> public interface IDok
>> {
>> }
>> abstract partial class BrowseForm : BaseForm, IPickListForm
>> {
>> internal virtual void DoInit(string formSource, char formType, char
>> formSubtype) { }
>> }
>> interface IPickListForm
>> {
>> }
>> partial class BaseForm : Form
>> {
>> public string FormName;
>> public string FormID;
>> }
>> sealed class DocumentForm<TList, TDoc, TRow> : BrowseForm, IGridHostForm
>> where TList : class
>> where TDoc : DokBase, IDok, INotifyPropertyChanged, new()
>> where TRow : EntityBase, IRid, new()
>> {
>> internal override void DoInit(string formSource, char formType, char
>> formSubtype)
>> {
>> MessageBox.Show("Test");
>> }
>> }
>> interface IGridHostForm
>> {
>> }
>>
>>
>
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>



-- 

Cordially.

Small Eric Quotations of the days:
---------------------------------------------------------------------------
If one day one reproaches you that your work is not a work of
professional, say you that:
Amateurs built the arch of Noah, and professionals the Titanic.
---------------------------------------------------------------------------

Few people are done for independence, it is the privilege of the powerful ones.
---------------------------------------------------------------------------

No key was wounded during the drafting of this message.


More information about the Mono-list mailing list