You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@arrow.apache.org by "Arkadiy Vertleyb (BLOOMBERG/ 120 PARK)" <av...@bloomberg.net> on 2023/05/12 13:19:07 UTC

Freeing memory when working with static crt in windows.

Hi all.

In some cases arrow API allocates an object and returns a shared pointer to it.  Which means the object will be deallocated on the client side.

This represents a problem when working with a static CRT in windows (which I am experiencing right now).

IIUC, the way to deal with this would be to export a "free" wrapper from arrow DLL and use custom deleter on the shared pointer to call this wrapper, so that both allocation and deallocation happens inside the arrow DLL itself.

Does arrow provide this kind of facility?

Thanks,
Arkadiy