Click here to Skip to main content
14,970,345 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I've Navigate to next page and then Navigate back in windows phone 8, If 5 or 6 times i do this app is crashed and output windows shows "TaskHost.exe has exited with code -2147220717 (0x80040313)". I don't know why this is happening. If anybody knows please suggest me.

//////////////////// OUTPUT FROM DEBUG /////////////
'TaskHost.exe' (Win32): Loaded '\Device
\HarddiskVolume27\Windows\System32\WebBrowserControlRes.dll'. Module was built without symbols. 'TaskHost.exe' (Win32): Unloaded '\Device\HarddiskVolume27\Windows\System32\WebBrowserControlRes.dll' 'TaskHost.exe' (Win32): Loaded '\Device\HarddiskVolume27\Windows\System32\UIXMobileAssets480x800.dll'. Module was built without symbols. 'TaskHost.exe' (Win32): Unloaded '\Device\HarddiskVolume27\Windows\System32\UIXMobileAssets480x800.dll' 'TaskHost.exe' (Win32): Loaded '\Device\HarddiskVolume27\Windows\System32\UIXMobileAssets480x800.dll'. Module was built without symbols. 'TaskHost.exe' (Win32): Unloaded '\Device\HarddiskVolume27\Windows\System32\UIXMobileAssets480x800.dll' 'TaskHost.exe' (Win32): Loaded '\Device\HarddiskVolume27\Windows\System32\UIXMobileAssets480x800.dll'. Module was built without symbols. 'TaskHost.exe' (Win32): Unloaded '\Device\HarddiskVolume27\Windows\System32\UIXMobileAssets480x800.dll' 'TaskHost.exe' (Win32): Loaded '\Device\HarddiskVolume27\Windows\System32\UIXMobileAssets480x800.dll'. Module was built without symbols. 'TaskHost.exe' (Win32): Unloaded '\Device\HarddiskVolume27\Windows\System32\UIXMobileAssets480x800.dll' First-chance exception at 0x76FC1EDB in TaskHost.exe: Microsoft C++ exception: LegacyHelper::ApiException at memory location 0x0C57F658. First-chance exception at 0x76FC1EDB in TaskHost.exe: Microsoft C++ exception: LegacyHelper::ApiException at memory location 0x0C57F230. First-chance exception at 0x76FC1EDB (KERNELBASE.DLL) in TaskHost.exe: 0xE0434352 (parameters: 0x80131501, 0x00000000, 0x00000000, 0x00000000, 0x70150000). The thread 0xe34 has exited with code 0 (0x0). First-chance exception at 0x76FC1EDB in TaskHost.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x0C57D7A8. First-chance exception at 0x76FC1EDB in TaskHost.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x0C57D498. First-chance exception at 0x76FC1EDB in TaskHost.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x0C57D188. First-chance exception at 0x76FC1EDB in TaskHost.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x0C57DAD0. First-chance exception at 0x76FC1EDB in TaskHost.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x0C57EBF8. First-chance exception at 0x76FC1EDB in TaskHost.exe: Microsoft C++ exception: LegacyHelper::ApiException at memory location 0x0C57DF08. The thread 0xe08 has exited with code -2147220717 (0x80040313). The thread 0x7b0 has exited with code -2147220717 (0x80040313).The thread 0x10c has exited with code -2147220717 (0x80040313). The thread 0x40c has exited with code -2147220717 (0x80040313). The thread 0xd44 has exited with code -2147220717 (0x80040313). The thread 0x658 has exited with code -2147220717 (0x80040313). The thread 0x210 has exited with code -2147220717 (0x80040313). The thread 0xc64 has exited with code -2147220717 (0x80040313). The thread 0xbc4 has exited with code -2147220717 (0x80040313). The thread 0xf58 has exited with code -2147220717 (0x80040313). The thread 0xd68 has exited with code -2147220717 (0x80040313). The thread 0xdc4 has exited with code -2147220717 (0x80040313). The thread 0x9ac has exited with code -2147220717 (0x80040313). The thread 0x378 has exited with code -2147220717 (0x80040313). The thread 0x618 has exited with code -2147220717 (0x80040313). The thread 0x434 has exited with code -2147220717 (0x80040313). The thread 0x78 has exited with code -2147220717 (0x80040313). The thread 0xef8 has exited with code -2147220717 (0x80040313). The thread 0xf5c has exited with code -2147220717 (0x80040313). The thread 0x880 has exited with code -2147220717 (0x80040313). The thread 0x958 has exited with code -2147220717 (0x80040313). The thread 0x898 has exited with code -2147220717 (0x80040313). The thread 0xbd8 has exited with code -2147220717 (0x80040313). The thread 0x978 has exited with code -2147220717 (0x80040313). The thread 0xc8c has exited with code -2147220717 (0x80040313). The thread 0xd54 has exited with code -2147220717 (0x80040313). The thread 0xc68 has exited with code -2147220717 (0x80040313). The thread 0xcf4 has exited with code -2147220717 (0x80040313). The thread 0x8c has exited with code -2147220717 (0x80040313). The thread 0xcc8 has exited with code -2147220717 (0x80040313). The thread 0x848 has exited with code -2147220717 (0x80040313). The thread 0xb04 has exited with code -2147220717 (0x80040313). The thread 0xf90 has exited with code -2147220717 (0x80040313). The thread 0xe6c has exited with code -2147220717 (0x80040313). The program '[3700] TaskHost.exe' has exited with code -2147220717 (0x80040313).

//////////////// MainPage /////////////////
C#
protected override void OnNavigatedFrom(NavigationEventArgs e)
    {
        base.OnNavigatedFrom(e);

    }

    protected override void OnNavigatedTo(NavigationEventArgs e)
    {

        base.OnNavigatedTo(e);
        App app=App.Current as App;
        if (app.IsFromFavouritePage)
        {
                ShowStoryboard.Begin();
                app.IsFromFavouritePage = false;
                MainViewModel mvm = DataContext as MainViewModel;
                mvm.RingtoneCollection.Clear();
                mvm.RingtoneCollection = CheckFavouriteRingtone(app.CollectionOfRingtone, app.CollectionOfRingtone[0].category_ringtone_id.ToString());
                ApplicationBar.IsVisible = true;

        }

    }

private void favListButton_Click(object sender, RoutedEventArgs e)
    {
        MainViewModel mvm = DataContext as MainViewModel;
        App app = App.Current as App;
        app.CollectionOfRingtone.Clear();
        foreach (RingtoneClass aRingtone in mvm.RingtoneCollection)
        {
            app.CollectionOfRingtone.Add(aRingtone);
        }
Posted
Updated 22-Jun-14 8:45am
v3
Comments
CHill60 22-Jun-14 14:25pm
   
Post the code that is giving you the issue
CHill60 23-Jun-14 7:25am
   
Check that you're not running out of memory, but given that amount of work you have in the OnNavigatedTo event it might be that you're attempting to navigate away before the page has finished loading
mywinphone 23-Jun-14 13:27pm
   
@CHill60 you have mentioned two option first option may be occurred. But how can i find out of memory exception.
One thing I can say I used sqlite-net-wp8 to store favorite ringtone that shows in next page. Thanks for your kind response.
CHill60 24-Jun-14 4:37am
   
Sorry my knowledge doesn't go that far yet. Try google for methods for debugging

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900