Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Memory leak when using postMessage from new thread #127

@ArnaudVERSINI

Description

@ArnaudVERSINI

Windows Build Number

Win32NT 10.0.26100.0 Microsoft Windows NT 10.0.26100.0

Processor Architecture

AMD64

Memory

64GB

Storage Type, free / capacity

1TB

Relevant apps installed

None, just Windows

Traces collected via Feedback Hub

None

Isssue description

memory leak in PostMessage from user32.dll

Steps to reproduce

Everytime I use PostMessage in a new thread it leaks 8 bytes with a 32bits application and16 bytes with a 64bits application. This should not be the case.

Build and run the application from https://github.com/ArnaudVERSINI/user32_memory_leak/ using cargo run --release and wait, memory will increase.

Expected Behavior

No memory leaks like on Windows 10

Actual Behavior

Memory leaks only on Windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions