locked
Adding dll to Windows Phone Store Game and crashing application.

    Question

  • Hello,

    I have a problem with my WP application. I write a game for Windows and Windows Phone. Version for Windows works good, so i decide to add support to Windows Phone. I use a x86 dll, that I include to the project. My new version for WP is compiling, but when VS trying to deploy WP app to simulator, my app crashes and doesn't run. I discover, that when i comment code of initializing this library in my project, app starts running. I put this dll in the analogical places, where I put its in Windows app version(that works perfectly). Can anybody help me, because I didn't know what is wrong with my app?

    Tuesday, February 10, 2015 8:22 PM

All replies

  • You'll need to provide more specific details. What is the code doing and where does it crash? Is the library valid for Windows Phone or does it call Windows Store specific API?

    Also note that Windows Phone devices are arm, not x86, so you'll need an arm version of the library.

    --Rob

    Tuesday, February 10, 2015 8:52 PM
    Moderator
  • This is a FW1FontWrapper and I used it for rendering text to reduce use of resources and fast runnign game. I know, that when I want to compiling a ARM version, I must generate a ARM version of this librabry, but in this case i generate a win32 version putting to WP os simulator, so that should work. App crashes, when he started and I get a error: Problem: Unable to activate Windows Store app: The App1.exe process started, but the activation request failed with error ‘The app didn’t start’. I call a directwrite and d3d library.
    Wednesday, February 11, 2015 9:06 AM
  • You'll need to provide clearer details. Can you reproduce in a minimal test project that you can share on your OneDrive?
    Thursday, February 12, 2015 1:05 AM
    Moderator
  • This is DirectX Windows Store app sample with simple initialization of this library, Windows store app runs well on win32, but the Windows phone store app on win32 crashes: https://onedrive.live.com/redir?resid=16B5AE9767745C61!36801&authkey=!AD_CxAD4GwOtWX0&ithint=file%2crar
    Thursday, February 12, 2015 10:49 AM
  • Can you please share this as a zip file?
    Tuesday, February 17, 2015 12:08 AM
    Moderator