×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Nov 2013
    Posts
    2

    Question Application Analysis features disabled when using Sqlite

    Hi,

    I'm finishing my app for WP8 using Sqlite, but I'm facing a problem when I try to start Windows Phone Application Analysis tool. When it opens I can't see other options except Execution. All the other options like App Analysis and Memory are unavailable.

    I read somewhere that this behavior happens when u try to reference C++ component like Sqlite, but I did't find any workaround for this. I just noticed when I remove the Sqlite reference to the project then I can see all options in the App Analysis tool. So I assume the Sqlite reference somehow makes the other options from the App Analysis tool to disappear.

    Please provide me with some workaround if u have any.

    Thanks.

  2. #2
    Registered User
    Join Date
    Nov 2013
    Posts
    29

    Re: Application Analysis features disabled when using Sqlite

    analysis and memory analysis are only possible because Windows Phone apps are compiled to an IL (like .net and java applications do). Once you reference a native library (written in C++) like SQLite the app analysis wouldn't be able to provide reliable results as it cannot profile the native bits.

    The only workaround I see is to provide a mockup datastore that gets data from a file or something instead of SQLite but then you would only be profiling the app itself, not the SQLite perf

  3. #3
    Registered User
    Join Date
    Mar 2013
    Posts
    11

    Re: Application Analysis features disabled when using Sqlite

    Hi, I had the same problem as you and did a very simple work around and it worked in my case.

    You will make another Class Library Project Name it for example DB ( which will work as bridge between your project and sqlite)

    Then add reference to sqlite project in this DB project and add SQLite.cs and SQLiteAsync.cs also in DB.

    The next step is to reference DB project instead of Sqlite directly.

    You will find Windows Phone Application Analysis available.

    Hope it works with you too, looking forward for your feedback

  4. #4
    Registered User
    Join Date
    Nov 2013
    Posts
    2

    Thumbs up Re: Application Analysis features disabled when using Sqlite

    Quote Originally Posted by AhmedRBasuony View Post
    Hi, I had the same problem as you and did a very simple work around and it worked in my case.

    You will make another Class Library Project Name it for example DB ( which will work as bridge between your project and sqlite)

    Then add reference to sqlite project in this DB project and add SQLite.cs and SQLiteAsync.cs also in DB.

    The next step is to reference DB project instead of Sqlite directly.

    You will find Windows Phone Application Analysis available.

    Hope it works with you too, looking forward for your feedback

    Thanks AhmedRBasuony. I finally fixed that with your simple workaround.

    I just needed to add USE_WP8_NATIVE_SQLITE compilation symbol in the new Class Library Project and now the Windows Phone Application Analysis tool works with all the features like a charm

    Best Regards!

  5. #5
    Registered User
    Join Date
    Mar 2013
    Posts
    11

    Re: Application Analysis features disabled when using Sqlite

    Great News

Similar Threads

  1. how to use SQLite in Symbian S60 application
    By RajeevSahu in forum Symbian C++
    Replies: 5
    Last Post: 2009-09-24, 07:26
  2. Replies: 0
    Last Post: 2008-08-20, 12:48
  3. Create Application Package is permanently Disabled
    By Shazard in forum Mobile Java General
    Replies: 2
    Last Post: 2003-08-08, 20:46
  4. new Class & new application package are disabled
    By hectorMeneses in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2003-06-18, 08:30
  5. Creating Application Package - Buttons disabled!
    By balone in forum Mobile Java Tools & SDKs
    Replies: 4
    Last Post: 2003-05-26, 20:55

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •