Re: Using wxProperrtyGrid inside DLL

Igor Korot <[email protected]> Sat, 19 Apr 2025 18:03:23 -0500
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <CA+FnnTxPKHaVQ2HUXQ2FQQNZaOGE0t6o_gY3gV5Ho-vD15BVig@mail.gmail.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.
.

On Sat, Apr 19, 2025 at 5:42 PM Igor Korot <[email protected]> wrote:
>
> 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.
>
> More info can be found at https://forums.wxwidgets.org/viewtopic.php?f=1&t=51983.
>
> Does anybody experienced something like this?
>
> I can try and make a sample but it will take some time...
>
> Thank you.
>

-- 
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
--- 
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/wx-users/CA%2BFnnTxPKHaVQ2HUXQ2FQQNZaOGE0t6o_gY3gV5Ho-vD15BVig%40mail.gmail.com.