diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx index 5359ac1395326..396109b280bfd 100644 --- a/vcl/source/app/svapp.cxx +++ b/vcl/source/app/svapp.cxx @@ -53,6 +53,7 @@ #include #include +#include #include #include #include @@ -1858,6 +1859,12 @@ void dumpState(rtl::OStringBuffer &rState) if (!pSVData) return; +#ifndef NDEBUG + // lo_dumpState deliberately doesn't take SolarMutexGuard + // so disable these checks during dumpState + DbgGUIDeInitSolarMutexCheck(); +#endif + rState.append("\nWindows:\t"); rState.append(static_cast(Application::GetTopWindowCount())); @@ -1876,6 +1883,10 @@ void dumpState(rtl::OStringBuffer &rState) vcl::graphic::Manager::get().dumpState(rState); pSVData->dumpState(rState); + +#ifndef NDEBUG + DbgGUIInitSolarMutexCheck(); +#endif } void trimMemory(int nTarget)