Using wxProperrtyGrid inside DLL

18 views
Skip to first unread message

Igor Korot

unread,
Apr 19, 2025, 6:49:10 PM4/19/25
to wx-u...@googlegroups.com
Hi,
I have a DLL project which export some functions thar creates dialogs.

Recently one of the dialogs needed wxPropertyGrid. I added it, but then program crashes because the Property Grid module was not initialized.

So I added the call to ::wxPGInitResourceModule() before loading the DLL. Now the crash was fixed but I got another crash when the program exits.


Does anybody experienced something like this?

I can try and make a sample but it will take some time...

Thank you.

Igor Korot

unread,
Apr 19, 2025, 7:04:01 PM4/19/25
to wx-u...@googlegroups.com
Backtrace on the exit crash:

> wxbase326ud_vc_custom.dll!wxModule::DoCleanUpModules(const wxVector<wxModule *> & modules) Line 203 C++
wxbase326ud_vc_custom.dll!wxModule::CleanUpModules() Line 189 C++
wxbase326ud_vc_custom.dll!DoCommonPostCleanup() Line 404 C++
wxbase326ud_vc_custom.dll!wxEntryCleanupReal() Line 453 C++
wxbase326ud_vc_custom.dll!wxEntryCleanup() Line 366 C++
wxbase326ud_vc_custom.dll!wxUninitialize() Line 554 C++
wxbase326ud_vc_custom.dll!wxInitializer::~wxInitializer() Line 109 C++
wxbase326ud_vc_custom.dll!wxEntryReal(int & argc, wchar_t * *
argv) Line 497 C++
wxbase326ud_vc_custom.dll!wxEntry(int & argc, wchar_t * * argv)
Line 175 C++
wxmsw326ud_core_vc_custom.dll!0ff977a9() Unknown
[Frames below may be incorrect and/or missing, no symbols loaded
for wxmsw326ud_core_vc_custom.dll] Unknown
docview.exe!WinMain(HINSTANCE__ * hInstance, HINSTANCE__ *
hPrevInstance, char * lpCmdLine, int nCmdShow) Line 68 C++
docview.exe!invoke_main() Line 107 C++
docview.exe!__scrt_common_main_seh() Line 288 C++
docview.exe!__scrt_common_main() Line 331 C++
docview.exe!WinMainCRTStartup() Line 17 C++
kernel32.dll!77026a24() Unknown
ntdll.dll!77a6a9ff() Unknown
ntdll.dll!77a6a9ca() Unknown

Thank you.
.
Reply all
Reply to author
Forward
0 new messages