Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows App Certification Kit hangs

I have developed windows 10 App and uploaded that to windows store. However, I wanted to apply Windows Certification App Kit. The testing hangs during these two stages;

Direct3D trim after suspend In progress... UTF-8 file encoding In progress...

I don't use any of those features in my app, but I don't understand why it should hang during process?

Thank you!

like image 842
ARH Avatar asked Dec 14 '15 09:12

ARH


1 Answers

I ran into this exact same issue:

"Direct3D trim after suspend In progress... UTF-8 file encoding In progress..."

Problem was that I didn't try to run the Release Version locally first. It didn't run because I used preprocessor directives like so:

public static LicenseInformation licenseInformation = null;

...

#if DEBUG
        ...
        ...
        licenseInformation = CurrentAppSimulator.LicenseInformation;
#else
        licenseInformation = CurrentApp.LicenseInformation;
#endif

"CurrentApp" did cause an exception.. I use code like this now:

#if DEBUG
        ...
        ...
        licenseInformation = CurrentAppSimulator.LicenseInformation;
#else
        try
        {
            licenseInformation = CurrentApp.LicenseInformation;
        }
        catch (Exception)
        {
        } 
#endif

And when working with the licenseInformation somewhere I check if it is not null before I use it...

I also found some other issues (warnings) in my code by using "Run Code Analysis on Solution"..

So in my case it was a problem with my code.

like image 195
A.J.Bauer Avatar answered Sep 21 '22 18:09

A.J.Bauer