crash when mouse enters window of app run from dll (FIX INCLUDED)
|Reported by:||StepanHrbek||Owned by:|
|Keywords:||dll unload crash||Cc:|
When mouse enters any window of wxWidgets app run from dll (not from exe, not from static library), comctl32.dll is loaded, unloaded and then called = crash.
Fix it by adding static in front of wxDynamicLibrary dllComCtl32(_T("comctl32.dll"), wxDL_VERBATIM); in src/msw/window.cpp line 5179. This prevents unload.
I described it (with sample code) in last paragraph of http://wiki.wxwidgets.org/Creating_A_DLL_Of_An_Application
Change History (11)
Changed 8 years ago by StepanHrbek
comment:6 Changed 8 years ago by StepanHrbek
- Resolution duplicate deleted
- Status changed from closed to reopened
comment:9 Changed 7 years ago by vadz
- Resolution set to port to stable
- Status changed from new to portneeded