i have a dll which causes an assertion when unloading
Code: Select all
wxSocketBase::IsInitialized(): unsafe to call from other threads
I do not use any wxSocketBase code, like
Code: Select all
wxSocketBase::Initalize()
When unloading the DLL, all threads with a socket connection are closed.
The assertion occurs on stack of wxEntryCleanup (where my DLL instance in fact is already NULL). Inside this function many "modules" (of any kind) are released.
One module obviously calls
Code: Select all
wxSocketBase::IsInitialized
I have no explanation why such a module at all is in the cleanup list.
It seems, i can't do anything to avoid it, because it is called outside DLL thread an within wxEntryCleanup.
Has anyone an idea about the cause of this assertion ?
Thank you