[odb-users] Operator delete overload - odb::sqlite::database destruction

Andrew Cunningham odb at a-cunningham.com
Tue Jul 22 17:41:05 EDT 2025


As Boris points out , overriding the global new/delete is not possible
across DLL boundaries on Windows.
You can however override the standard malloc/free

https://microsoft.github.io/mimalloc/overrides.html

On Wed, Jul 16, 2025 at 7:41 AM Boris Kolpackov <boris at codesynthesis.com> wrote:
>
> Lloyd <lloydkl.tech at gmail.com> writes:
>
> > Looks like this issue is caused by delete from the DLL.
>
> Yes, that was my first hunch.
>
>
> > Could you please shed some light on this?
>
> Nope, I don't think you can make overloaded new/delete work across
> DLLs on Windows.
>



More information about the odb-users mailing list