[Mono-bugs] [Bug 338233] When using Pen.ScaleTransform on a Pen object, the app crashes with ArgumentException

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Oct 31 18:25:27 EDT 2007


https://bugzilla.novell.com/show_bug.cgi?id=338233#c2


Dimitar Dobrev <dpldobrev at yahoo.com> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                                        |NEW
      Info Provider|dpldobrev at yahoo.com                             |




--- Comment #2 from Dimitar Dobrev <dpldobrev at yahoo.com>  2007-10-31 16:25:26 MST ---
Created an attachment (id=181576)
 --> (https://bugzilla.novell.com/attachment.cgi?id=181576)
This is the very same project I got the error with.

To reproduce, simply start HermitInterpolationPolynomial.exe from a terminal or
from MonoDevelop (to see the stack trace).
Remark: the file Release/HermitInterpolationPolynomial.exe is built by
MonoDevelop and it couldn't run in Windows, showing the following error: 

System.Reflection.TargetInvocationException was unhandled
  Message="Exception has been thrown by the target of an invocation."
  Source="mscorlib"
  StackTrace:
       at System.RuntimeMethodHandle._InvokeConstructor(Object[] args,
SignatureStruct& signature, IntPtr declaringType)
       at System.RuntimeMethodHandle.InvokeConstructor(Object[] args,
SignatureStruct signature, RuntimeTypeHandle declaringType)
       at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr,
Binder binder, Object[] args, CultureInfo culture, Object[]
activationAttributes)
       at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr,
Binder binder, Object[] args, CultureInfo culture, Object[]
activationAttributes)
       at System.Resources.ResourceManager.CreateResourceSet(Stream store,
Assembly assembly)
       at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo
culture, Boolean createIfNotExists, Boolean tryParents)
       at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo
culture, Boolean createIfNotExists, Boolean tryParents)
       at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo
culture, Boolean createIfNotExists, Boolean tryParents)
       at System.Resources.ResourceManager.GetObject(String name, CultureInfo
culture, Boolean wrapUnmanagedMemStream)
       at System.Resources.ResourceManager.GetObject(String name)
       at
HermitInterpolationPolynomial.FunctionInterpolationByHermit.InitializeComponent()
       at HermitInterpolationPolynomial.FunctionInterpolationByHermit..ctor()
       at HermitInterpolationPolynomial.Program.Main()
  InnerException: System.Reflection.TargetInvocationException
       Message="Exception has been thrown by the target of an invocation."
       Source="mscorlib"
       StackTrace:
            at System.RuntimeMethodHandle._SerializationInvoke(Object target,
SignatureStruct& declaringTypeSig, SerializationInfo info, StreamingContext
context)
            at System.RuntimeMethodHandle.SerializationInvoke(Object target,
SignatureStruct declaringTypeSig, SerializationInfo info, StreamingContext
context)
            at
System.Reflection.RuntimeConstructorInfo.SerializationInvoke(Object target,
SerializationInfo info, StreamingContext context)
            at
System.Runtime.Serialization.ObjectManager.CompleteISerializableObject(Object
obj, SerializationInfo info, StreamingContext context)
            at
System.Runtime.Serialization.ObjectManager.FixupSpecialObject(ObjectHolder
holder)
            at System.Runtime.Serialization.ObjectManager.DoFixups()
            at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler
handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain,
IMethodCallMessage methodCallMessage)
            at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream
serializationStream, HeaderHandler handler, Boolean fCheck, Boolean
isCrossAppDomain, IMethodCallMessage methodCallMessage)
            at System.Resources.ResourceReader.DeserializeObject(Int32
typeIndex)
            at System.Resources.ResourceReader.LoadObjectV2(Int32 pos,
ResourceTypeCode& typeCode)
            at System.Resources.ResourceReader.GetValueForNameIndex(Int32
index)
            at System.Resources.ResourceReader.ResourceEnumerator.get_Value()
            at System.Resources.ResourceSet.ReadResources()
            at System.Resources.ResourceSet..ctor(IResourceReader reader)
       InnerException: System.ArgumentException
            Message="Argument 'picture' must be a picture that can be used as a
Icon."
            Source="System.Drawing"
            StackTrace:
                 at System.Drawing.Icon.Initialize(Int32 width, Int32 height)
                 at System.Drawing.Icon..ctor(SerializationInfo info,
StreamingContext context)
            InnerException: 

The Debug/HermitInterpolationPolynomial.exe was also unable to run on Windows
and I had to rebuild it using Visual Studio to be able to start it. I don't
know if, now that it's built with VS, it would work correctly in GNU/Linux, but
you could easily check that. If you need, I can check it on my machine too and
send you feedback. It is important to know that I got the pen error after I had
built 
the application with MonoDevelop and not after simply starting an .exe built by
VS.

By the way, I forgot to provide information about my environment:
Windows - OS: Windows XP SP 2;
          Platform: .NET 3.5 Beta 2; 
          IDE: Visual Studio 2008 Beta 2;
GNU/Linux - OS: Ubuntu 7.10 Gutsy Gibbon;
            Platform: Mono 1.2.5.1 (with libgdiplus 1.2.5.1);
            IDE: MonoDevelop 0.16 (Beta 2).


-- 
Configure bugmail: https://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