New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory Leak by showing PDF in wxWebViewIE #24453
Comments
Please try debugging the leak using the same tool you used to detect it in the first place to see where is it coming from. Also, it's not clear which wxWebView backend you're using: is it the default (and deprecated) IE one or the Edge one (which needs to be explicitly enabled)? |
I can reproduce it with GIT master and
Adding (and verifying afterwards the allocation order number was still the same) _CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
_CrtSetBreakAlloc(51989); to wxWidgets/src/msw/ole/activex.cpp Lines 991 to 1003 in 72d5cf6
Calling |
I have tried to exclude this block... if ( cp )
{
/*
wxActiveXEvents * const
events = new wxActiveXEvents(this, ta2->guid);
hret = cp->Advise(events, &adviseCookie);
// We don't need this object any more and cp will keep a
// reference to it if it needs it, i.e. if Advise()
// succeeded.
events->Release();
CHECK_HR(hret);
*/
} Build new library and link my app. |
Thanks for debugging this! AFAICS it really looks like the connection point forgets to call I'd recommend switching to Edge backend in any case. |
I use the last Version of Visual Studio 2022 C++ V17.9.5/NET Framework 4.08.09032
Windows 11
I made a simple wxWebView for showing a PDF-Document_
If i finish the program there is a memory leak of 36 bytes!
Very intresting:
If i take the original sample webview and i imput an URL of a PDF-file (W:/wxDMenu/wxDMenuData/Doc/Manual_de.pdf) i get als the same memory leak of 36 Bytes!
What's wrong?
TNX
Robert
The text was updated successfully, but these errors were encountered: