[Mono-bugs] [Bug 580549] New: resx won't compile; A null reference or invalid value was found[GDI+ status: InvalidParameter]

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Feb 17 10:18:07 EST 2010


http://bugzilla.novell.com/show_bug.cgi?id=580549

http://bugzilla.novell.com/show_bug.cgi?id=580549#c0


           Summary: resx won't compile; A null reference or invalid value
                    was found[GDI+ status: InvalidParameter]
    Classification: Mono
           Product: Mono: Compilers
           Version: 2.6.x
          Platform: i686
        OS/Version: Windows XP
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: dean.geddes at primus.ca
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=342932)
 --> (http://bugzilla.novell.com/attachment.cgi?id=342932)
resource file we are attempting to compile

User-Agent:       Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR
2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

C:\Development\Mono.2010.02.09\PiPe Modules\pipe\Properties>resgen
Resources.res
x
Error: Invalid ResX input.
Position: Line 129, Column 5.
Inner exception: A null reference or invalid value was found [GDI+ status:
Inval
idParameter]

C:\Development\Mono.2010.02.09\PiPe Modules\pipe\Properties>

Same thing happens when I attempt to build project using MonoDevelop.

Line 129 is the the end tag in the following (from attached resx file):

  <data name="pipe_splash" type="System.Resources.ResXFileRef,
System.Windows.Forms">
    <value>..\resources\pipe_splash.jpg;System.Drawing.Bitmap, System.Drawing,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
  </data>


Reproducible: Always

Steps to Reproduce:
1. Attempt to generate the resource file.  Generate fails.  Project builds and
runs on .Net 2.0
2.
3.
Actual Results:  
Generate resource file

Expected Results:  
files generates, project builds

Following is the resource designer file that goes with the resx file:

//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:2.0.50727.3603
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace VengeoPiPe.Properties {
    using System;


    /// <summary>
    ///   A strongly-typed resource class, for looking up localized strings,
etc.
    /// </summary>
    // This class was auto-generated by the StronglyTypedResourceBuilder
    // class via a tool like ResGen or Visual Studio.
    // To add or remove a member, edit your .ResX file then rerun ResGen
    // with the /str option, or rebuild your VS project.
   
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder",
"2.0.0.0")]
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
    internal class Resources {

        private static global::System.Resources.ResourceManager resourceMan;

        private static global::System.Globalization.CultureInfo
resourceCulture;

       
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance",
"CA1811:AvoidUncalledPrivateCode")]
        internal Resources() {
        }

        /// <summary>
        ///   Returns the cached ResourceManager instance used by this class.
        /// </summary>
       
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
        internal static global::System.Resources.ResourceManager
ResourceManager {
            get {
                if (object.ReferenceEquals(resourceMan, null)) {
                    global::System.Resources.ResourceManager temp = new
global::System.Resources.ResourceManager("VengeoPiPe.Properties.Resources",
typeof(Resources).Assembly);
                    resourceMan = temp;
                }
                return resourceMan;
            }
        }

        /// <summary>
        ///   Overrides the current thread's CurrentUICulture property for all
        ///   resource lookups using this strongly typed resource class.
        /// </summary>
       
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
        internal static global::System.Globalization.CultureInfo Culture {
            get {
                return resourceCulture;
            }
            set {
                resourceCulture = value;
            }
        }

        internal static System.Drawing.Bitmap ObjectBox {
            get {
                object obj = ResourceManager.GetObject("ObjectBox",
resourceCulture);
                return ((System.Drawing.Bitmap)(obj));
            }
        }

        internal static System.Drawing.Bitmap PiPe_Downloading_Temp_Objects {
            get {
                object obj =
ResourceManager.GetObject("PiPe_Downloading_Temp_Objects", resourceCulture);
                return ((System.Drawing.Bitmap)(obj));
            }
        }

        internal static System.Drawing.Bitmap pipe_splash {
            get {
                object obj = ResourceManager.GetObject("pipe_splash",
resourceCulture);
                return ((System.Drawing.Bitmap)(obj));
            }
        }

        internal static System.Drawing.Bitmap Properties {
            get {
                object obj = ResourceManager.GetObject("Properties",
resourceCulture);
                return ((System.Drawing.Bitmap)(obj));
            }
        }
    }
}

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list