[Mono-bugs] [Bug 685625] New: ASAsset.Orientation property causes InvalidCastException

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Apr 6 16:48:09 EDT 2011



           Summary: ASAsset.Orientation property causes
    Classification: Mono
           Product: MonoTouch
           Version: unspecified
          Platform: Macintosh
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Class Libraries
        AssignedTo: gnorton at novell.com
        ReportedBy: tlillqvist at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

Trying to access the Orientation property of an ALAsset object fails with
InvalidCastException in AssetsLibrary/ALAsset.cs:41. It tries to cast a
NSString to a NSNumber. Using IntValue should help, as in the workaround in my

(ALAssetOrientation) (((NSNumber) asset.ValueForProperty (new NSString
("ALAssetPropertyOrientation")) ).IntValue)

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

More information about the mono-bugs mailing list