Windows Phone 8 Silverlight application performace issue.

Hi Everybody,
We are developing an application which is having 100 pages (Chat Application), in this application we can send images,audio,video,contact,location everything by attachments. Application is running perfectly but if we use application for one hour by sending
all attachments and doing some navigation's like one to another page, application becoming slow down and crashing. I have observed major issue with memory but I could not able to resolve this issue. I want to clear all memory consuming by pages, and how can
I make this application perfect and fast.
Your help is very very appreciable.
Thanks in advance.

As long as pages are kept on the BackStack they won't be reclaimed by the Garbage Collector. So you either have to structure your navigation in such a way that the user's navigation doesn't result in an ever longer BackStack.
E.g. if I navigate forwards from Page A to Page B and then Page C I should not provide a button to jump to Page A but rather have the user do back navigation which will remove the other pages from the back stack. Alternatively you could clear the Back Stack
whenever the user visits the start page of your App.
Another common issue that is keeping pages alive even when they are no longer on the back stack is that they have registered to static events or to events on objects that are kept alive (e.g. Singletons or something like that). In that case the event still
is a reference to the page and that in turn keeps it from being collected by the GC. To fix this you should unregister those events when navigating away from a page.
Hope these hints help you in fixing your memory consumption problem.

Similar Messages

  • How do I upgrade my Windows Phone Silverlight/SQL CE app to Windows 10?

    I have currently a Silverlight app in Windows Phone Store which uses SQL CE database. Data stored in database is very essential and users may not loose it in any situation or they stop using the app.
    I know I could in theory upgrade my Silverlight app to use SQLite, then wait for 6-12 months to be sure that all users have upgraded into this SQLite version and only after that publish my Windows 10 version of the app. But I really would not like to do
    that because waiting for 6-12 months is too long. My app is used maybe 1-2 times a month by an average user, that's why I think minimum of 6-12 months wait time would be necessary.
    I believe many developers have the same issue.
    Is any of these options possible:
    1. Silverlight is still in Windows 10 so the code for reading SQL CE databases still exists there. So Microsoft could easily implement in Windows 10 APIs an utility function something like ExportSqlCeDatabase(DataContext context, string outputFolder)
    which would export all tables in a database to CSV files. Then in my Windows 10 app I could import data from those CSV files into my new SQLite database.
    2. Can I prevent automatic application upgrade from a too old Silverlight app to Windows 10 version? Upgrade should be allowed only if user has first installed the Silverlight upgrade which already uses SQLite database. If an automatic upgrade is performed
    from a too old Silverlight version still using the SQL CE database, all data is lost.
    3. Can Silverlight app access files of another Windows Runtime app (from same publisher) in Windows 10? If this is possible, I could then implement a separate utility application using Silverlight which upgrades the old SQL CE database to SQLite in
    the actual Windows Runtime app by accessing its files (read+write access to other app's files needed). This option would be the worst but better than nothing.

    Take a look at Sam Jawaran's Build session
    Moving to the Universal Windows Platform: Porting an App from Windows 8.1 XAML or Windows Phone Silverlight to Windows 10 tomorrow morning (and available recorded later).
    I don't believe there's a clean way to read the SQL CE database once the app is upgraded to a Windows Runtime app. The best is probably to upgrade your app to convert from SQLCE to SQLite in Silverlight ASAP. That will give some time for customers
    to run it and update their databases before Windows 10 ships and you publish the Windows 10 version of your app.
    --Rob

  • How to upload a file which may contain text as well as image to the server using windows phone 8 application ?

    How to upload a file which may contain text as well as image  to the server using windows phone 8 application ?

    You're going to need to give way more detail about the situation before we can help.

  • Play video from StorageFile in Windows phone silverlight?

    How can I set the source of a MediaElement after selecting a video from the gallery of the phone? 
    I'M USING WINDOWS PHONE SILVERLIGHT 8.1. 

    You could use SetSource method of MediaEelement. 
    Read this MSDN http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh871377.aspx

  • Does a multiple language supported Windows Phone 8 Application support Bengali Language (Bangladeshi language)?

    Hello,
    I am developing  a Windows Phone 8 application (for Nokia/ Microsoft Lumia) where multiple languages will be supported. Now, it is needed to support Bengali (Bangladeshi language) in my Windows phone 8 application.
    But, I didn't find Bengali language in the Setting -> Language -> phone Language. So could anyone tell me that a multiple language supported windows phone 8 application support Bengali language or not. If it is possible, then how user will change
    the app language from phone setting?
    FYI .. From Microsoft OEM documentation, I have known that Windows Phone 8.1 GDR2 includes support for Bangla (Bangladesh language). 
    Thanks

    Hi NONAME-2007,
    As far as I known the Bangla language is supported as a on-screen keyboard language on the Windows Phone 8. But it is not supported as a display language in Windows Phone 8, so you can not choose this language from the phone setting. For more information,
    please try to refer to the following article:
    http://www.windowsphone.com/en-us/how-to/wp8/basics/feature-and-service-availability .
    Best Regards,
    Amy Peng
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Converting a "windows phone silverlight pivot" app to a universal app, possible?

    Ok so when trying to suss out the emulator(thats been resolved) i stumbled onto the universal app page of msdn....now as a fledgling coder im not too verse at reading the msdn pages (they are on the whole not designed for beginners) but i had a tinker
    around
    i managed to get a similier interface on the phone portion of the app to my pivot app (indeed the universal one is pivot too) but none of the code i added to the shared section could access the textboxes / text blocks of the phones interface ie where on my
    program i will say "raceDisplay.Text = charRace;" which would put the string of charRace into the raceDisplay text block it cant see raceDisplay which is really confusing...
    so is there a good guide to converting a windows 8.1 silverlight pivot app to a universal app?
    I had planed to get the phone app done first and then make a whole new app for desktops, universal would (in theory) save me having to duplicate all my work and allow me to update both at the same time (unless i misunderstand the shared code stuff)

    Hi D.Eastwick,
    >>but none of the code i added to the shared section could access the textboxes / text blocks of the phones interface ie where on my program i will say "raceDisplay.Text = charRace;" which would put the string of charRace into the raceDisplay
    text block it cant see raceDisplay which is really confusing...
    For this issue, it will be better if you can try to post a simple reproduce project in here.
    >>so is there a good guide to converting a windows 8.1 silverlight pivot app to a universal app?
    The pivot control is available in the Windows Phone 8.1 Silverlight and Windows universal app. But some API/Controls which are available in the Windows Phone 8.1 Silverlight may not be available in the Windows universal app, besides, some API may have
    a different namespace betwwen the Windows Phone 8.1 Silverlight and Windows universal app, so you should pay attention to it. For more information, please try to refer to the following articles:
    #Migrating your Windows Phone 8 app to a Windows Runtime XAML app:
    https://msdn.microsoft.com/en-us/library/windows/apps/dn642486(v=vs.105).aspx .
    #Windows Phone API:
    https://msdn.microsoft.com/en-us/library/windows/apps/ff626516(v=vs.105).aspx
    Best Regards,
    Amy Peng
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Unable to use C++ dll in the windows phone 8 application.

    Hi folks,
    I am trying to use the native c++ dll compiled for Win32 platform using PInvoke. The native dll is a simple library which is returns some dummy values of native data types. The dll is working fine with the traditional Windows Forms Applications. But when
    I am trying to use the same dll in the Windows Phone 8 app, I am getting a runtime exception, "An exception of type 'System.NotSupportedException' occurred in Unknown Module. but was not handled in user code".
    [System.Runtime.InteropServices.DllImport("win32dll.dll", EntryPoint = "Hello")]
    private static extern int Hello();
    As one can see the InteropServices classes in Windows Phone 8 sdk, the PInvoke must be supported! am I going wrong some where? Can some one give me sample windows Phone 8 app project which is using native C++ dll.

    Here's the official list of InteropServices classes supported by the phone:
    http://msdn.microsoft.com/en-us/library/windowsphone/develop/system.runtime.interopservices(v=vs.105).aspx
    DllImport isn't one of them.
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • Windows Phone - Hybrid Sencha App Issue

    We are building a hybrid app using Sencha Touch 2.4.0 targeting iOS, Android and Windows Phone. Although we are able to package and run the app for windows phone 8.1 using stub data but we are not able to make any calls to
    the web service(services are exposed to public server). After building an app, when we make an XMLHttpRequest call (POST), the request seems to return a null response. 
    We are trying to hit a URL which is live(no VPN required) and accessible from Internet Explorer mobile browser. We are able
    to hit the services and get appropriate response when we run the app in IE10 desktop browser(or even mobile browser). 
    We use a Nokia Lumia 920 running on Windows Phone 8.1 OS as the test device. We are not facing the same issues in any android phone or iphone. Therefore the issue seems to be restricted to windows phones only. We have tried
    debugging the app extensively for any possible fault
    in our code but we couldn't figure it out. 
    It would be very helpful if anyone has faced a similar issue and has a solution or workaround. 

    I'm not familiar with Sencha and you don't provide a lot of information about what your app is actually doing here, but check that you have network capabilities selected. In Visual Studio these are exposed in the capabilities tab in the manifest editor.
    Without those declared the app does not have access to the network.

  • Toast is not redirecting to specific page when phone is locked in windows phone 8 application

    I subscribed to toast notifications to my windows phone 8 chat application..
    It is redirecting to specific page when i minimize the app and close the app.
    But in following scenario it is not redirecting..
    I opened app and then i locked the phone.
    I got notification then i clicked on toast.
    It is not redirecting to that page i specified.
    When i look into rootframe_navigating event in app.xaml.cs, i found that the notification uri is not coming when we lock the phone when app is opened.
    I hope you understand the scenario.
    Is that bug or should i do anything for redirecting when phone is locked also?
    Waiting for the reply.
    Thanks!
     

    I used fast app resume...
    That is the reason that it is behaving like that..
    I need fast app resume also..
    How can i overcome this?

  • In Windows Phone Silverlight project missing Visual assets tab

    Hi!
    I can not find in package.appxmanifest file Visual assets tab.
    I would like change default pictures in assets folder.
    How can I change the pictures?

    Hi
    If you want to add just single image, then create a pic in the size of 480*800 and name it as SplashScreenImage.jpg and put that image in the root folder.
    Done! Splash Screen will be displayed on the app.
    If you want to add several images with respect to the screen resolution, then create three pictures in the sizes of 480*800, 768*1280, and 720*1280 and name those pic as
    SplashScreenImage.screen-WVGA.jpg,
    SplashScreenImage.screen-WXGA.jpg,
    SplashScreenImage.screen-720p.jpg and put these pictures in the root folder.
    Done! Splash Screen will be displayed on the app with respect to phone's native screen resolution.
    To modify the displaying time of SplashScreen, following code may be useful. Paste below code after InitializeComponent();
    Thread.Sleep(2000);
    https://msdn.microsoft.com/library/windows/apps/ff769511(v=vs.105).aspx
    Regards
    Varun Ravindranath Please 'Mark as Answer' if my post answers your question and 'Vote as Helpful' if it helps you.

  • Developing Windows Embedded Compact Application (installation issues)

    I want to develop an application for a device running Windows Embedded Compact 7
    I have downloaded the Application Builder for Windows Embedded Compact 2013 (VSEmbedded_AppBuilder.exe) from here and installed it on my machine
    I am following the instructions from
    this page which says that there should be a "Windows Embedded Compact" node within the New Project dialog box. There isn't
    Additionally, if I launch VSEmbedded_AppBuilder.exe I get a window that only gives you the option to Repair or Uninstall and displays no information other information other than the fact that it is the Application Builder for Windows Embedded Compact 2013
    that you are trying to run
    I have tried repairing and uninstalling and it doesn't help. I have also tried restarting my pc between installing and opening visual studio. Doesn't help either
    What am I missing here?
    I'm running Visual Studio 2012 Professional on a Windows 7 machine. All I want to do is build an application for my Windows Embedded Compact 7 device
    Thanks

    You say that your device is running Compact 7
    You downloaded a Visual Studio plug in for Compact 2013
    You provided links to Compact 2013 documentation and tools
    Since your device is running Compact 7, it would make sense to target your app to run on Compact 7 - if you target Compact 2013, your app
    will not run.
    You will need to install Visual Studio 2005 or 2008 - which one depends on what you plan to do.
    Take a look at
    http://embedded101.com/Blogs/SamuelPhung/entryid/211/Compact-7-Getting-Started-Part-4-Develop-Managed-Code-Application
    Take a look at
    http://embedded101.com/Blogs/SamuelPhung/entryid/216/Compact-7-Getting-Started-Part-5-Develop-Native-Code-Application
    Take a look at http://embedded101.com/Compact7
    Take a look at
    https://msdn.microsoft.com/en-us/library/jj838858(v=winembedded.70).aspx 
    Take a look at CTacke's answer in
    http://stackoverflow.com/questions/24241978/developing-net-compact-framework-apps-in-post-2008-visual-studio
    Bruce Eitman (eMVP) Senior Engineer Bruce.Eitman AT Eurotech DOT com My BLOG http://geekswithblogs.net/bruceeitman Eurotech Inc. www.Eurotech.com

  • Find my windows phone.... issue

    Hi
    I own a lumia 520 (India) and i seem to be unable to locate my phone on the map .
    however i am able to ring and lock my phone from windowsphone.com
    also in the "find my phone" settings there seems to be only one option of "send apps via push notification"
    the second check box is not there.
    i am from India ... Please let me know how to resolve this issue.

    You need to contact Microsoft about your issue as the find my phone service is entirely under their control, not Nokia's.
    http://answers.microsoft.com/en-us/winphone

  • Doubt regarding facebook integration for windows phone 8.1 silverlight app?

    Hi,
    I am developing a windows phone 8.1 silverlight application . For my application I integrated the facebook login. For this facebook integration I used the login with facebook app method.
    My doubt is after getting the app id from the dev center , I updated the appid at developers.facebook.com , wmmanifest.xml (In extensions protocol (msft-appid without dashes)) . Or do I need to change the product id in the place holder also , I tried to
    change the productid also but I am getting error like some signature is wrong try with different signature. I am confused how to do it .
    Any help,
    Thanks...
    Suresh.M

    Hi Suresh,
    According to your description, I assume you want to complete facebook configuration in windows phone silverlight app. Please refer to the following link to see how.
    http://facebooksdk.net/docs/phone/config/.
    You can find code sample from
    https://github.com/facebook-csharp-sdk/facebook-winclient-sdk/tree/master/Samples.
    Facebook API is third-party library and it is our of our support range. You can post questions on here.
    https://github.com/facebook-csharp-sdk/facebook-winclient-sdk/issues.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate
    the survey.

  • Voip application for windows phone 8.1 fails store submission

    A voip application with the new 8.1 architecture based on a separate process for the voip server is not accepted by the store.
    Voip architecture is based on 8.1 sample: https://code.msdn.microsoft.com/windowsapps/ChatterBox-VoIP-WP81-64921ad4
    Errors during submission:
    3011: The package is missing RpalManifest.xml. Update it and then try again.
    1028: The native API api-ms-win-core-processthreads-l1-1-2.dll:ExitProcess() isn’t allowed in assembly doubango.BackEndServerHost.exe. Update it and then try again.

    Update.  I am currently working with the sample team to update the sample.   We found the problem to be in the way the BackEndServerHost VIsual studio 
    project was created.   While we work on re-creating that from scratch, testing, and re-publishing I wanted to post what we have done so far in case anyone 
    wants to move forward.
    First there are a couple bugs in the sample, maybe you worked around those already in your development but in case not here they are.
    In the backendaudio.cpp BackEndCapture::InitCapture I changed the code:
    if (SUCCEEDED(hr))
    WAVEFORMATEX format = {};
    if (SUCCEEDED(hr))
    FillPcmFormat(format, m_pwfx->nChannels, m_pwfx->nSamplesPerSec, m_pwfx->wBitsPerSample);
    m_sourceFrameSizeInBytes = (format.wBitsPerSample / 8) * format.nChannels;
    hr = m_pDefaultCaptureDevice->Initialize(AUDCLNT_SHAREMODE_SHARED, 0x88140000, 1000 * 10000, 0, &format, NULL);
    The m_pwfx was already retrieved via GetMixFormat earlier, just use that.  Don’t create a custom one.
    In the BackEndAudio::Stop routine change the order of cleanup:
    if (m_pDefaultRenderDevice)
    m_pDefaultRenderDevice->Release();
    m_pDefaultRenderDevice = NULL;
    if (m_pDefaultCaptureDevice)
    m_pDefaultCaptureDevice->Release();
    m_pDefaultCaptureDevice = NULL;
    if (m_pCaptureClient)
    m_pCaptureClient->Release();
    m_pCaptureClient = NULL;
    The next step is to basically delete the BackEndServerHost project and create a new one with the following steps.
    1)  Add a new C++ Dirext X App (Windows Phone) to the solution and name it VoipBackendServerHost  NOTE: using "." in the name causes problems, so don't use the same name as the original sample.
    2)  Remove the Common and Content Folders
    3)  Remove App1Main.cpp and App1Main.h
    4)  Contents of app.cpp should be:
    #include "pch.h"
    #include "App.h"
    #include <windows.applicationmodel.core.h>
    #include <wrl.h>
    #include <string>
    #include <stdexcept>
    using namespace ABI::Windows::ApplicationModel::Core;
    using namespace ABI::Windows::Foundation;
    using namespace Microsoft::WRL;
    using namespace Wrappers;
    HRESULT __cdecl MyGetActivationFactory(_In_ HSTRING activatableClassId, _COM_Outptr_ IInspectable **factory);
    class GetCustomClass : public RuntimeClass<RuntimeClassFlags<RuntimeClassType::WinRtClassicComMix>,
    IGetActivationFactory,
    CloakedIid<IAgileObject >>
    public:
    IFACEMETHODIMP GetActivationFactory(_In_ HSTRING activatableClassId, _COM_Outptr_ IInspectable **factory)
    return MyGetActivationFactory(activatableClassId, factory);
    private:
    HMODULE m_hMod;
    [Platform::MTAThread]
    int main(Platform::Array<Platform::String^>^)
    HRESULT hr = Initialize(RO_INIT_MULTITHREADED);
    if (FAILED(hr))
    throw std::runtime_error(std::string("Failed to Initialize(RO_INIT_MULTITHREADED), HRESULT: ").append(std::to_string(hr)));
    // Scoping for smart pointers
    ComPtr<ICoreApplication> spApplicationFactory;
    hr = GetActivationFactory(HStringReference(RuntimeClass_Windows_ApplicationModel_Core_CoreApplication).Get(), &spApplicationFactory);
    if (FAILED(hr))
    throw std::runtime_error(std::string("Failed to GetActivationFactory(RuntimeClass_Windows_ApplicationModel_Core_CoreApplication), HRESULT: ").append(std::to_string(hr)));
    ComPtr<IGetActivationFactory> spGetActivationFactory = Make<GetCustomClass>();
    spApplicationFactory->RunWithActivationFactories(spGetActivationFactory.Get());
    Uninitialize();
     5) Right click and bring up Project properties.  go To Linker->Input.
     6) Set the Configuration and Platform dropdowns to change all configurations all platforms at the same time
     7) Choose Edit for Additional Dependencies and set to this:
    $(SolutionDir)$(PlatformTarget)\$(Configuration)\BackEnd\PhoneVoIPApp.BackEnd.lib
    WindowsPhoneCore.lib
    RuntimeObject.lib
     8) Under Cofniguration Properties->General Set the Target Name to PhoneVoIP.BackEnd.HostServer and Output directory to $(SolutionDir)UI
     9) APply the settings. Then click OK
    10) Build the Proxy Stub
    11) Build the Agents
    12) Build the new Project
    13) Expand the UI (Windows Phone Silverlight 8.1) Project and find the PhoneVoIP.BackEnd.HOstServer.exe and remove it.
    14) Right click UI and Choose Add Existing and add the PhoneVoIP.BackEnd.HostServer
    This should hopefully get you moving forward.  Please test and make sure your application is working. The end result should pass WACK now.  Please let me know if there are any issues.  It is a lot of steps and I hope I didn't miss any.
    Bret Bentzinger (MSFT) @awehellyeah

  • Getting error while submitting application (Windows Phone 8.1 Silver Light Application).The native API api-ms-win-core-synch-l1-2-0.dll:OpenEventA() isn't allowed in assembly . The Assembly is WindowsPhoneSilverLight 8.1 Runtime Component.

    1028: The native API api-ms-win-core-synch-l1-2-0.dll:OpenEventA() isn’t allowed in assembly AnylyncRuntimeComponent.dll.
    Update it and then try again. 
    1028: The native API api-ms-win-core-synch-l1-2-0.dll:CreateEventA() isn’t allowed in assembly AnylyncRuntimeComponent.dll.
    Update it and then try again.
     1028: The native API api-ms-win-core-synch-l1-2-0.dll:CreateEventExA() isn’t allowed in assembly AnylyncRuntimeComponent.dll.
    Update it and then try again.
     Can please help to fix this issue . 

    Are you calling OpenEventA, CreateEventA, or CreateEventExA? Those look like legitimate errors: OpenEventA, CreateEventA,
    and CreateEventExA are not supported in Windows Store or Windows Phone apps. OpenEventW and CreateEventExW are allowed so you can use those instead.
    And is this a Windows Store app or a Windows Phone Silverlight app? You gave different details on StackOverflow than you
    do here.

Maybe you are looking for

  • Creating a new work item instance in a process using PAPI

    I'm seeing that there are a lot of questions on this forum about using Oracle BPM 10g's Java API called PAPI. I just uploaded a step by step document on how you could do this using JDeveloper 11. Here's the link to this document: http://www.4shared.c

  • Did you know that Captivate 8 takes virtually all of the work out of creating responsive online courses?

    I just saw the Adobe Blog article about Captivate 8 and the statement that Cp8 is an " authoring tool that takes virtually all of the work out of creating responsive courses online". http://blogs.adobe.com/captivate/2014/05/the-all-new-adobe-captivat

  • Adobe cs3 won't install on Windows 7(32-bit)!

    A friend of mine finally convinced me to install Windows 7, and he had good reason to. This OS really lives up to the hype thats been going on...but, Im having trouble installing an ESSENTIAL program(s) to this great OS, Adobe CS3 Design Premium. I i

  • Commision to sales employee

    Hi, I like to calculate sales commission to sales employee every month end after sales closing. The scenario is: Upon achievement of 100% of targeted sales - commision is 4% of total sales Upon achievement of 95% of targeted sales - commision is 2% o

  • Getting an error after migrating VS2012 to VS2013 .

    Hi, I have installed VS2013 and opened my project. So web.config added "  <add assembly="System.Spatial, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />" and giving compile error : "Could not load file or assembly 'System.Spatia