Skip to content

Fix async task thread lifetime in message box dialog - #3781

Merged
sdottaka merged 1 commit into
masterfrom
fix/3780-async-task-thread-lifetime
Nov 13, 2026
Merged

sdottaka merged 1 commit into
masterfrom
fix/3780-async-task-thread-lifetime

Conversation

@sdottaka

Copy link
Copy Markdown
Member

This PR fixes issue #3780.

The CWinThread object created by AfxBeginThread() could be automatically deleted when the worker thread finished, leaving m_pAsyncTaskThread dangling.

This change disables automatic deletion and explicitly deletes the thread object after waiting for the worker thread to finish.

This PR fixes issue #3780.

The CWinThread object created by AfxBeginThread() could be automatically deleted when the worker thread finished, leaving m_pAsyncTaskThread dangling.

This change disables automatic deletion and explicitly deletes the thread object after waiting for the worker thread to finish.
@sdottaka sdottaka added this to the v2.16.61 milestone Nov 13, 2026
@sdottaka
sdottaka marked this pull request as ready for review November 13, 2026 12:49
@sdottaka
sdottaka merged commit fe18811 into master Nov 13, 2026
3 checks passed
@sdottaka
sdottaka deleted the fix/3780-async-task-thread-lifetime branch November 13, 2026 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant