<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>DisplayFusion RSS: [Bug report] v11 regression: async functions</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=0193c5a2-3970-759b-8644-c3c7d86df7fb" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=0193c5a2-3970-759b-8644-c3c7d86df7fb</link>
<description>DisplayFusion RSS: [Bug report] v11 regression: async functions</description>
<lastBuildDate>Thu, 21 May 2026 15:05:32 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=0193c5a2-3970-759b-8644-c3c7d86df7fb</generator>
<item>
<title>RE: [Bug report] v11 regression: async functions</title>
<link>https://www.displayfusion.com/Discussions/View/bug-report-v11-regression-async-functions/?ID=0193c5a2-3970-759b-8644-c3c7d86df7fb#3</link>
<pubDate>Fri, 20 Dec 2024 13:51:02 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/bug-report-v11-regression-async-functions/?ID=0193c5a2-3970-759b-8644-c3c7d86df7fb#3</guid>
<category>DisplayFusion</category>
<description><![CDATA[We've released a new version that should fix this up, please let me know if you run into any issues after updating.
Thanks!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
We've released a new version that should fix this up, please let me know if you run into any issues after updating. <br/>
<br/>
Thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: [Bug report] v11 regression: async functions</title>
<link>https://www.displayfusion.com/Discussions/View/bug-report-v11-regression-async-functions/?ID=0193c5a2-3970-759b-8644-c3c7d86df7fb#2</link>
<pubDate>Mon, 16 Dec 2024 21:48:12 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/bug-report-v11-regression-async-functions/?ID=0193c5a2-3970-759b-8644-c3c7d86df7fb#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[Thank you for reporting this issue, sorry to hear that it's happening with the new version. We have identified the issue and it's been fixed for the next release. We will follow-up once we have the release ready to go. Thanks!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Thank you for reporting this issue, sorry to hear that it's happening with the new version. We have identified the issue and it's been fixed for the next release. We will follow-up once we have the release ready to go. Thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>[Bug report] v11 regression: async functions</title>
<link>https://www.displayfusion.com/Discussions/View/bug-report-v11-regression-async-functions/?ID=0193c5a2-3970-759b-8644-c3c7d86df7fb</link>
<pubDate>Sat, 14 Dec 2024 14:46:03 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/bug-report-v11-regression-async-functions/?ID=0193c5a2-3970-759b-8644-c3c7d86df7fb</guid>
<category>DisplayFusion</category>
<description><![CDATA[Hello, DisplayFusion devs!
I was using a custom scripted function with a "public static async void Run(IntPtr windowHandle)" function. This function's behaviour was broken when updating to DisplayFusion v11. I had an "await" call to a TaskCompletionSource Task, but the async function no longer c...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hello, DisplayFusion devs!<br/>
<br/>
I was using a custom scripted function with a "public static async void Run(IntPtr windowHandle)" function. This function's behaviour was broken when updating to DisplayFusion v11. I had an "await" call to a TaskCompletionSource Task, but the async function no longer continues after the await call.<br/>
I converted my code to manually waiting for the task and not using async functions. Waiting for the TaskCompletionSource works fine.<br/>
<br/>
Testing code below (the message is never displayed).<br/>
<br/>
<div class="col-md-12 BoxWrap"><div class="Box table-responsive"><a name="code" style="width:0; height:0;"></a><h2 class="TableTitle" style="border:0"><div class="TableTitleText">Code</div><div class="TitleButtons"><div class="TableTitleButton"><a href="#" onclick="return false;" data-clipboard-target="#code019e4b12035072ff9fbf7c362f0b741b" class="ClipboardCopyControl"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019e4b12035072ff9fbf7c362f0b741bJs'); return false;"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Select All</span></a></div></div></h2><div class="TableTitleContent table-responsive"><div class="AceEditorWrapper" style="border-top:solid 1px var(--color-default-border);padding:0"><pre id="code019e4b12035072ff9fbf7c362f0b741bJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">using System;
using System.Diagnostics;
using System.Threading.Tasks;

public static class DisplayFusionFunction
{
    static Task&lt;int&gt; Test()
    {
        var tcs = new TaskCompletionSource&lt;int&gt;();
    
        var process = new Process {
            StartInfo = {
                FileName = "timeout",
                Arguments = "1"
            },
            EnableRaisingEvents = true
        };
    
        process.Exited += (sender, args) =&gt; {
            tcs.SetResult(process.ExitCode);
            process.Dispose();
        };
    
        try
        {
            process.Start();
        }
        catch
        {
            return Task.FromResult(-1);
        }
    
        return tcs.Task;
    }
    
    public static async void Run(IntPtr windowHandle)
    {
        await Test();
        System.Windows.Forms.MessageBox.Show("Successfully completed!");
    }
}</pre><textarea id="code019e4b12035072ff9fbf7c362f0b741b" name="code019e4b12035072ff9fbf7c362f0b741b" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div>
</div>
]]></content:encoded>
</item>
</channel>
</rss>