Ticket #10203 (closed defect: fixed)
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