microsoft / Chakra-Samples

Repository for Chakra JavaScript engine related samples.
MIT License
216 stars 84 forks source link

promiseContinuationCallback will be unavailable after GC #69

Closed JohnMasen closed 7 years ago

JohnMasen commented 7 years ago

Path :Chakra-Samples/Chakra Samples/JSRT Universal Windows Apps Hosting Samples/C#/JsRT_UWP_Sample/ChakraHost.cs Line32: JavaScriptPromiseContinuationCallback promiseContinuationCallback = delegate (JavaScriptValue task, IntPtr callbackState) { taskQueue.Enqueue(task); };

liminzhu commented 7 years ago

Thanks for pointing it out! Added a quick fix to extend the lifetime. https://github.com/Microsoft/Chakra-Samples/commit/20c924ff73fdc7341c2c80fc296806e965723f9f