Cocossharp game keeps crashing on splash screen

wo997wo997 Member ✭✭
edited April 3 in Xamarin.Android

Hi, I am having serious issues with running cocossharp game, it used to be all fine and 2 days ago it firstly started to work noticeably slower and today it completely stopped working, it crashes after showing splash screen. Earlier I have been using android emulator in visual studio and all worked fine, after the error I tried debugging app on my phone but it didnt help - still crashes without error. I was able to make the emulator work again but all it does is it load splash screen and after probably 300 seconds it shuts down. Any questions?

Best Answer

  • wo997wo997 ✭✭
    edited April 4 Accepted Answer

    Problem solved, it was really hard to spot, but there was a different issue
    I have:
    private static bool _muted = false
    and public static bool muted with getter and setter
    and I used wrong name later in the code, muted instead of _muted, luckily it works now :)

    what it caused was an infinite loop of a function calling itself, how stupid I was

Answers

  • wo997wo997 Member ✭✭
    edited April 4 Accepted Answer

    Problem solved, it was really hard to spot, but there was a different issue
    I have:
    private static bool _muted = false
    and public static bool muted with getter and setter
    and I used wrong name later in the code, muted instead of _muted, luckily it works now :)

    what it caused was an infinite loop of a function calling itself, how stupid I was

Sign In or Register to comment.