System.EntryPointNotFoundException when UIView.Animate is called

Hi,

I have an application and Im simply trying to fade out a view but for some reason I'm getting a "System.EntryPointNotFoundException" when calling the following code:

UIView.Animate (0.5f, 0, UIViewAnimationOptions.CurveEaseInOut,
() => {
View.Alpha = 0f;
},
() => {
}
);

Stacktrace:

at (wrapper managed-to-native) MonoTouch.ObjCRuntime.BlockLiteral:xamarin_get_block_descriptor ()
at MonoTouch.ObjCRuntime.BlockLiteral.SetupBlock (System.Delegate trampoline, System.Delegate userDelegate) [0x0003e] in /Developer/MonoTouch/Source/maccore/src/ObjCRuntime/Blocks.cs:86
at MonoTouch.UIKit.UIView.AnimateNotify (Double duration, Double delay, UIViewAnimationOptions options, MonoTouch.Foundation.NSAction animation, MonoTouch.UIKit.UICompletionHandler completion) [0x00021] in /Developer/MonoTouch/Source/monotouch/src/build/compat/UIKit/UIView.g.cs:713
at MonoTouch.UIKit.UIView.Animate (Double duration, Double delay, UIViewAnimationOptions options, MonoTouch.Foundation.NSAction animation, MonoTouch.Foundation.NSAction completion) [0x0000e] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIView.cs:130
at TouchMeLongTime.SplashView.FadeOut () [0x0003d] in /Users/ronherhuth/Projects/TouchMeLongTime/TouchMeLongTime/SplashView.cs:28
at TouchMeLongTime.GameManager.HandleTimerTime () [0x0002a] in /Users/ronherhuth/Projects/TouchMeLongTime/TouchMeLongTime/GameManager.cs:146
at CustomTimer.UpdateTimer () [0x00013] in /Users/ronherhuth/Projects/TouchMeLongTime/TouchMeLongTime/Timer.cs:35
at CustomTimer+c__async0.MoveNext () [0x00078] in /Users/ronherhuth/Projects/TouchMeLongTime/TouchMeLongTime/Timer.cs:27

What am I doing wrong?

Thanks,
Ron

Posts

  • adamkempadamkemp USInsider, Developer Group Leader mod

    This is just a guess, but it could be that you are mixing Xamarin.iOS versions.

  • How do I fix that...I checked Xamarin and it says everything is up to date.

  • adamkempadamkemp USInsider, Developer Group Leader mod

    Do any of your projects have references (other than system and Xamarin assemblies) to assemblies instead of projects? What can happen is if you have one assembly reference another one that is not built as part of your project then the one you depend on may have been built with a different version of Xamarin.iOS. I have seen that cause problems before.

  • I see. I am using SqlLite and GoogleAdMobAds dlls as referenced assemblies. I am using those in other projects though so I dont think that they are the problem.

  • adamkempadamkemp USInsider, Developer Group Leader mod

    Have you tried a clean build and deleting the app from the device?

  • RolfBjarneKvingeRolfBjarneKvinge USXamarin Team Xamurai

    This looks like the binding dlls (Sqlite/GoogleAdMobAds) were created with a newer version of Xamarin.iOS than your main project.

    Can you please post the full version information from Xamarin Studio's About menu (click on Details to see it).

  • Here is my information:

    Xamarin Studio
    Version 5.2.1 (build 1)
    Installation UUID: 5ff1f08c-cb88-4f45-a43f-34bde716a3c3
    Runtime:
    Mono 3.6.0 ((no/f540f8a)
    GTK+ 2.24.23 (Raleigh theme)

    Package version: 306000039
    

    Xamarin.Android
    Version: 4.14.0 (Starter Edition)
    Android SDK: /Users/ronherhuth/Library/Developer/Xamarin/android-sdk-mac_x86
    Supported Android versions:
    2.1 (API level 7)
    2.2 (API level 8)
    2.3 (API level 10)
    3.1 (API level 12)
    4.0 (API level 14)
    4.0.3 (API level 15)
    Java SDK: /usr
    java version "1.6.0_65"
    Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
    Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

    Apple Developer Tools
    Xcode 5.1.1 (5085)
    Build 5B1008

    Xamarin.iOS
    Version: 7.2.6.28 (Business Edition)
    Hash: 606f31a
    Branch:
    Build date: 2014-08-01 15:27:48-0400

    Xamarin.Mac
    Version:

    Build Information
    Release ID: 502010001
    Git revision: d06832ce9807d6be24aca225457e8b37c7669f6f
    Build date: 2014-08-07 12:10:47-04
    Xamarin addins: 1de032531be4cecf2f39dbee3b87aac78204058c

    Operating System
    Mac OS X 10.9.4
    Darwin Rons-MacBook-Pro-2.local 13.3.0 Darwin Kernel Version 13.3.0
    Tue Jun 3 21:27:35 PDT 2014
    root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64

  • RolfBjarneKvingeRolfBjarneKvinge USXamarin Team Xamurai

    xamarin_get_block_descriptor should definitively be in Xamarin.iOS 7.2.6, so this is quite strange.

    Can you try the alpha and/or beta versions to see if that makes a difference?

Sign In or Register to comment.