Search Unity

OnApplicationQuit and OnDestroy are not called on UWP-10

Discussion in 'Windows' started by roumenf, Mar 23, 2017.

  1. roumenf

    roumenf

    Joined:
    Dec 12, 2012
    Posts:
    635
    Hi,

    I noticed the event functions OnApplicationQuit() and OnDestroy() are not called in the UWP-'Unversal 10' builds. Is this a bug in the player, or I'm missing some UWP player setting?
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,676
  3. roumenf

    roumenf

    Joined:
    Dec 12, 2012
    Posts:
    635
    Thank you for the rapid response! OK, I'll try to use the OnApplicationFocus()-event instead...
    By the way, in the latest Unity releases, an exception is thrown when the app gets closed on UWP-10. The error code was 0xc0000409, as far as I remember.
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,676
    Yeah we noticed it very recently. Fix for that is in the pipeline.
     
    roumenf likes this.