Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bowarc/fltk_heap_corruption
https://github.com/bowarc/fltk_heap_corruption
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/bowarc/fltk_heap_corruption
- Owner: Bowarc
- Created: 2021-12-25T01:05:58.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-28T14:49:21.000Z (over 2 years ago)
- Last Synced: 2024-11-08T08:29:19.422Z (2 months ago)
- Language: Rust
- Size: 78.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fltk_heap_corruption
![alt text](screen_capture_bug.png)This has been fixed.
Just put `let mut my_app = MyApp::new();` before `let a = app::App::default();` from what i understood it's a drop impl in sysinfo that calls win32's CoUninitialize() which messes with the window's destructor.Basically moving `let mut my_app = MyApp::new();` which calls `sysinfo::System::new_all()` to the beginning of main, i.e. before window creation should fix the issue. The sysinfo System window's component vec basically resizes and the drop calls [CoUninitialize](https://docs.microsoft.com/en-us/windows/win32/api/combaseapi/nf-combaseapi-couninitialize)
Credits for the fix: `mo_al_#3796` in the Rust Programming Language Community Discord Server