oledlg.dll Error in Windows 10 and 11: Object insertion dialog errors

A desktop editor can open files but its Insert Object dialog closes or logs oledlg.dll.
What this DLL does
OLEDLG.DLL provides OLE user-interface support for operations such as selecting or inserting an object from a compatible application.
Start with this check
Test a blank document and a known-good supported object type. Check whether the dialog fails before an object is selected or only after a particular object is chosen.
Record the exact error, when it occurred, and the full module path if available. For a crash, open View reliability history from Start and look for the matching entry. The affected app, faulting module and exception code help distinguish an app problem from a system-wide one.
Choose the repair that fits
Repair the originating application or the approved application for the embedded type. If an old object is incompatible, preserve the document and use an approved export or migration path.
Start with Microsoft’s app repair options if only one supported application fails. If unrelated built-in Windows features also fail and you suspect system file corruption, use Microsoft’s DISM and System File Checker instructions. Use supported packages and avoid downloading individual DLL files.
Verify the repair
Open a test copy and verify the intended object can be selected, inserted and reopened.
For a related check, see ole32.dll troubleshooting. Browse the DLL Errors & Fixes Library. Official reference: Microsoft’s Windows COM documentation.